luci-app-ssr-plus: Repair Hysteria2
version detection (#1358)
This commit is contained in:
parent
27d29a7f7e
commit
346a1009a0
@ -407,7 +407,7 @@ start_udp() {
|
|||||||
hysteria)
|
hysteria)
|
||||||
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
||||||
ln_start_bin $(first_type hysteria) hysteria client --config $udp_config_file
|
ln_start_bin $(first_type hysteria) hysteria client --config $udp_config_file
|
||||||
echolog "UDP TPROXY Relay:$($(first_type "hysteria") version | awk '{print $1,$3}') Started!"
|
echolog "UDP TPROXY Relay:$($(first_type "hysteria") version | awk '{print $1,$2}') Started!"
|
||||||
;;
|
;;
|
||||||
tuic)
|
tuic)
|
||||||
# FIXME: ipt2socks cannot handle udp reply from tuic
|
# FIXME: ipt2socks cannot handle udp reply from tuic
|
||||||
@ -511,7 +511,7 @@ start_shunt() {
|
|||||||
fi
|
fi
|
||||||
ln_start_bin $(first_type hysteria) hysteria client --config $shunt_config_file
|
ln_start_bin $(first_type hysteria) hysteria client --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
|
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 hysteria) version | awk '{print $1,$3}') Started!"
|
echolog "shunt:$($(first_type hysteria) version | awk '{print $1,$2}') Started!"
|
||||||
;;
|
;;
|
||||||
tuic)
|
tuic)
|
||||||
local chain_shunt_port="30${tmp_shunt_port}"
|
local chain_shunt_port="30${tmp_shunt_port}"
|
||||||
@ -610,7 +610,7 @@ start_local() {
|
|||||||
if [ "$_local" == "2" ]; then
|
if [ "$_local" == "2" ]; then
|
||||||
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
|
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
|
||||||
ln_start_bin $(first_type hysteria) hysteria client --config $local_config_file
|
ln_start_bin $(first_type hysteria) hysteria client --config $local_config_file
|
||||||
echolog "Global_Socks5:$($(first_type hysteria) version | awk '{print $1,$3}') Started!"
|
echolog "Global_Socks5:$($(first_type hysteria) version | awk '{print $1,$2}') Started!"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
tuic)
|
tuic)
|
||||||
@ -705,7 +705,7 @@ Start_Run() {
|
|||||||
hysteria)
|
hysteria)
|
||||||
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
|
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
|
||||||
ln_start_bin $(first_type hysteria) hysteria client --config $tcp_config_file
|
ln_start_bin $(first_type hysteria) hysteria client --config $tcp_config_file
|
||||||
echolog "Main node:$($(first_type hysteria) version | awk '{print $1,$3}') Started!"
|
echolog "Main node:$($(first_type hysteria) version | awk '{print $1,$2}') Started!"
|
||||||
;;
|
;;
|
||||||
tuic)
|
tuic)
|
||||||
local PARAM
|
local PARAM
|
||||||
|
Loading…
Reference in New Issue
Block a user