mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
luci-app-ssr-plus: re-append protocol arg for ss-rust
Fixes: b8444816273b4 ("luci-app-ssr-plus: move shadowsocks UDP argument to configuration") Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
048e39c6e1
commit
8c951c94e6
@ -339,7 +339,8 @@ start_udp() {
|
||||
ss | ssr)
|
||||
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
||||
ss_program="$(first_type ${type}local ${type}-redir)"
|
||||
ln_start_bin $ss_program ${type}-redir -c $udp_config_file
|
||||
[ "$(printf '%s' "$ss_program" | awk -F '/' '{print $NF}')" = "${type}local" ] && local ss_extra_arg="--protocol redir"
|
||||
ln_start_bin $ss_program ${type}-redir -c $udp_config_file $ss_extra_arg
|
||||
echolog "UDP TPROXY Relay:$(get_name $type) Started!"
|
||||
;;
|
||||
v2ray)
|
||||
@ -381,7 +382,8 @@ start_shunt() {
|
||||
ss | ssr)
|
||||
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port
|
||||
ss_program="$(first_type ${type}local ${type}-redir)"
|
||||
ln_start_bin $ss_program ${type}-redir -c $shunt_config_file
|
||||
[ "$(printf '%s' "$ss_program" | awk -F '/' '{print $NF}')" = "${type}local" ] && local ss_extra_arg="--protocol redir"
|
||||
ln_start_bin $ss_program ${type}-redir -c $shunt_config_file $ss_extra_arg
|
||||
if [ -n "$tmp_local_port" ]; then
|
||||
local tmp_port=$tmp_local_port
|
||||
else
|
||||
@ -528,8 +530,9 @@ Start_Run() {
|
||||
ss | ssr)
|
||||
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port
|
||||
ss_program="$(first_type ${type}local ${type}-redir)"
|
||||
[ "$(printf '%s' "$ss_program" | awk -F '/' '{print $NF}')" = "${type}local" ] && local ss_extra_arg="--protocol redir"
|
||||
for i in $(seq 1 $threads); do
|
||||
ln_start_bin "$ss_program" ${type}-redir -c $tcp_config_file
|
||||
ln_start_bin "$ss_program" ${type}-redir -c $tcp_config_file $ss_extra_arg
|
||||
done
|
||||
echolog "Main node:$(get_name $type) $threads Threads Started!"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user