luci-app-ssr-plus: clean up spaces (#1372)
This commit is contained in:
parent
cde932d13a
commit
6a00f53b32
@ -354,13 +354,13 @@ gen_config_file() { #server1 type2 code3 local_port4 socks_port5 chain6 threads5
|
|||||||
;;
|
;;
|
||||||
shadowtls)
|
shadowtls)
|
||||||
case "$3" in
|
case "$3" in
|
||||||
1|2|4)
|
1|2|4)
|
||||||
[ -z "$6" ] && lua /usr/share/shadowsocksr/gen_config.lua $1 $type $4 >$chain_config_file || lua /usr/share/shadowsocksr/gen_config.lua $1 $mode $4 $5 $6 >$config_file
|
[ -z "$6" ] && lua /usr/share/shadowsocksr/gen_config.lua $1 $type $4 >$chain_config_file || lua /usr/share/shadowsocksr/gen_config.lua $1 $mode $4 $5 $6 >$config_file
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
lua /usr/share/shadowsocksr/gen_config.lua $1 $type $4 >$chain_config_file
|
lua /usr/share/shadowsocksr/gen_config.lua $1 $type $4 >$chain_config_file
|
||||||
lua /usr/share/shadowsocksr/gen_config.lua $1 $mode $4 $5 $6 >$config_file
|
lua /usr/share/shadowsocksr/gen_config.lua $1 $mode $4 $5 $6 >$config_file
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
socks5)
|
socks5)
|
||||||
@ -426,14 +426,14 @@ start_udp() {
|
|||||||
ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file
|
ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file
|
||||||
local chain_type=$(uci_get_by_name $UDP_RELAY_SERVER chain_type)
|
local chain_type=$(uci_get_by_name $UDP_RELAY_SERVER chain_type)
|
||||||
case ${chain_type} in
|
case ${chain_type} in
|
||||||
vmess)
|
vmess)
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -c $udp_config_file
|
ln_start_bin $(first_type xray v2ray) v2ray run -c $udp_config_file
|
||||||
echolog "UDP TPROXY Relay:shadow-tls chain-to $($(first_type xray) --version) Started!"
|
echolog "UDP TPROXY Relay:shadow-tls chain-to $($(first_type xray) --version) Started!"
|
||||||
;;
|
;;
|
||||||
sslocal)
|
sslocal)
|
||||||
ln_start_bin $(first_type sslocal) sslocal -c $udp_config_file
|
ln_start_bin $(first_type sslocal) sslocal -c $udp_config_file
|
||||||
echolog "UDP TPROXY Relay:shadow-tls chain-to $($(first_type sslocal) --version) Started!"
|
echolog "UDP TPROXY Relay:shadow-tls chain-to $($(first_type sslocal) --version) Started!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
socks5)
|
socks5)
|
||||||
@ -535,14 +535,14 @@ start_shunt() {
|
|||||||
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
|
||||||
local chain_type=$(uci_get_by_name $SHUNT_SERVER chain_type)
|
local chain_type=$(uci_get_by_name $SHUNT_SERVER chain_type)
|
||||||
case ${chain_type} in
|
case ${chain_type} in
|
||||||
vmess)
|
vmess)
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -c $shunt_config_file
|
ln_start_bin $(first_type xray v2ray) v2ray run -c $shunt_config_file
|
||||||
echolog "Netflix Separated Shunt Server:shadow-tls chain-to$($(first_type xray) --version) Started!"
|
echolog "Netflix Separated Shunt Server:shadow-tls chain-to$($(first_type xray) --version) Started!"
|
||||||
;;
|
;;
|
||||||
sslocal)
|
sslocal)
|
||||||
ln_start_bin $(first_type sslocal) sslocal -c $shunt_config_file
|
ln_start_bin $(first_type sslocal) sslocal -c $shunt_config_file
|
||||||
echolog "Netflix Separated Shunt Server:shadow-tls chain-to$($(first_type sslocal) --version) Started!"
|
echolog "Netflix Separated Shunt Server:shadow-tls chain-to$($(first_type sslocal) --version) Started!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
# socks5)
|
# socks5)
|
||||||
@ -628,14 +628,14 @@ start_local() {
|
|||||||
ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_local_config_file
|
ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_local_config_file
|
||||||
local chain_type=$(uci_get_by_name $LOCAL_SERVER chain_type)
|
local chain_type=$(uci_get_by_name $LOCAL_SERVER chain_type)
|
||||||
case ${chain_type} in
|
case ${chain_type} in
|
||||||
vmess)
|
vmess)
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -c $local_config_file
|
ln_start_bin $(first_type xray v2ray) v2ray run -c $local_config_file
|
||||||
echolog "Global Socks5 Proxy:shadow-tls chain-to$($(first_type xray) --version) Started!"
|
echolog "Global Socks5 Proxy:shadow-tls chain-to$($(first_type xray) --version) Started!"
|
||||||
;;
|
;;
|
||||||
sslocal)
|
sslocal)
|
||||||
ln_start_bin $(first_type sslocal) sslocal -c $local_config_file
|
ln_start_bin $(first_type sslocal) sslocal -c $local_config_file
|
||||||
echolog "Global Socks5 Proxy:shadow-tls chain-to$($(first_type sslocal) --version) Started!"
|
echolog "Global Socks5 Proxy:shadow-tls chain-to$($(first_type sslocal) --version) Started!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user