|
|
@@ -361,8 +361,8 @@ start_udp() {
|
|
|
;;
|
|
|
v2ray)
|
|
|
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
|
|
- ln_start_bin $(first_type xray v2ray) v2ray -config $udp_config_file
|
|
|
- echolog "UDP TPROXY Relay:$($(first_type "xray" "v2ray") -version | head -1) Started!"
|
|
|
+ ln_start_bin $(first_type xray v2ray) v2ray run -config $udp_config_file
|
|
|
+ echolog "UDP TPROXY Relay:$($(first_type "xray" "v2ray") version | head -1) Started!"
|
|
|
;;
|
|
|
trojan) #client
|
|
|
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_local_port
|
|
|
@@ -411,9 +411,9 @@ start_shunt() {
|
|
|
v2ray)
|
|
|
local tmp_port=${tmp_local_port:-$tmp_shunt_local_port}
|
|
|
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port $tmp_port
|
|
|
- ln_start_bin $(first_type xray v2ray) v2ray -config $shunt_config_file
|
|
|
+ ln_start_bin $(first_type xray v2ray) v2ray run -config $shunt_config_file
|
|
|
ln_start_bin $(first_type dns2socks) dns2socks 127.0.0.1:$tmp_port 8.8.8.8:53 127.0.0.1:$tmp_shunt_dns_port -q
|
|
|
- echolog "shunt:$($(first_type xray v2ray) -version | head -1) Started!"
|
|
|
+ echolog "shunt:$($(first_type xray v2ray) version | head -1) Started!"
|
|
|
;;
|
|
|
trojan)
|
|
|
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port
|
|
|
@@ -487,9 +487,9 @@ start_local() {
|
|
|
v2ray)
|
|
|
if [ "$_local" == "2" ]; then
|
|
|
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
|
|
|
- ln_start_bin $(first_type xray v2ray) v2ray -config $local_config_file
|
|
|
+ ln_start_bin $(first_type xray v2ray) v2ray run -config $local_config_file
|
|
|
fi
|
|
|
- echolog "Global_Socks5:$($(first_type "xray" "v2ray") -version | head -1) Started!"
|
|
|
+ echolog "Global_Socks5:$($(first_type "xray" "v2ray") version | head -1) Started!"
|
|
|
;;
|
|
|
trojan) #client
|
|
|
gen_config_file $LOCAL_SERVER $type 4 $local_port
|
|
|
@@ -549,8 +549,8 @@ Start_Run() {
|
|
|
;;
|
|
|
v2ray)
|
|
|
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
|
|
|
- ln_start_bin $(first_type xray v2ray) v2ray -config $tcp_config_file
|
|
|
- echolog "Main node:$($(first_type xray v2ray) -version | head -1) Started!"
|
|
|
+ ln_start_bin $(first_type xray v2ray) v2ray run -config $tcp_config_file
|
|
|
+ echolog "Main node:$($(first_type xray v2ray) version | head -1) Started!"
|
|
|
;;
|
|
|
trojan)
|
|
|
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port
|