|  | @@ -323,7 +323,7 @@ gen_config_file() { #server1 type2 code3 local_port4 socks_port5 threads5
 | 
											
												
													
														|  |  	naiveproxy)
 |  |  	naiveproxy)
 | 
											
												
													
														|  |  		case "$3" in
 |  |  		case "$3" in
 | 
											
												
													
														|  |  		1)
 |  |  		1)
 | 
											
												
													
														|  | -			lua /usr/share/shadowsocksr/gen_config.lua $1 redir $4 $5 >$config_file
 |  | 
 | 
											
												
													
														|  | 
 |  | +			lua /usr/share/shadowsocksr/gen_config.lua $1 redir $4 >$config_file
 | 
											
												
													
														|  |  			;;
 |  |  			;;
 | 
											
												
													
														|  |  		3)
 |  |  		3)
 | 
											
												
													
														|  |  			lua /usr/share/shadowsocksr/gen_config.lua $1 redir $4 >$config_file
 |  |  			lua /usr/share/shadowsocksr/gen_config.lua $1 redir $4 >$config_file
 | 
											
										
											
												
													
														|  | @@ -560,8 +560,7 @@ Start_Run() {
 | 
											
												
													
														|  |  		echolog "Main node:$($(first_type $type) --version 2>&1 | head -1) , $threads Threads Started!"
 |  |  		echolog "Main node:$($(first_type $type) --version 2>&1 | head -1) , $threads Threads Started!"
 | 
											
												
													
														|  |  		;;
 |  |  		;;
 | 
											
												
													
														|  |  	naiveproxy)
 |  |  	naiveproxy)
 | 
											
												
													
														|  | -		[ "$(uci_get_by_type global threads 0)" == "0" ] && threads=1
 |  | 
 | 
											
												
													
														|  | -		gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $threads
 |  | 
 | 
											
												
													
														|  | 
 |  | +		gen_config_file $GLOBAL_SERVER $type 1 $tcp_port
 | 
											
												
													
														|  |  		ln_start_bin $(first_type naive) naive $tcp_config_file
 |  |  		ln_start_bin $(first_type naive) naive $tcp_config_file
 | 
											
												
													
														|  |  		echolog "Main node:$($(first_type naive) --version 2>&1 | head -1) , $threads Threads Started!"
 |  |  		echolog "Main node:$($(first_type naive) --version 2>&1 | head -1) , $threads Threads Started!"
 | 
											
												
													
														|  |  		;;
 |  |  		;;
 |