mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
commit
1b2fc70e59
2 changed files with 8 additions and 21 deletions
|
@ -323,10 +323,12 @@ _set_ssgo_server_vps() {
|
|||
config_load shadowsocks-rust
|
||||
config_foreach _get_ss_redir ss_redir
|
||||
config_foreach _get_ss_server server
|
||||
# Force disable fast open for now du to problem on 6.1 with MPTCP
|
||||
fast_open="false"
|
||||
|
||||
if [ "$current_mptcp" != "$mptcp" ] || [ "$current_port" != "$port" ] || [ "$current_method" != "$method" ] || [ "$current_fast_open" != "$fast_open" ]; then
|
||||
local settings
|
||||
settings='{"port": '$port',"method":"'$method'","fast_open":'$fast_open',"reuse_port":true,"mptcp":'$mptcp'}'
|
||||
settings='{"port": '$port',"method":"'$method'","fast_open":'$fast_open',"reuse_port":false,"mptcp":'$mptcp'}'
|
||||
result=$(_set_json "shadowsocks-go" "$settings")
|
||||
fi
|
||||
}
|
||||
|
@ -1591,7 +1593,7 @@ _set_config_from_vps() {
|
|||
set shadowsocks-rust.sss0.server_port=$ss_port
|
||||
set shadowsocks-rust.sss0.method=$ss_method
|
||||
EOF
|
||||
config_foreach _set_ssrust_server server "key" $ssgo_sskey
|
||||
config_foreach _set_ssrust_server server "password" $ssgo_sskey
|
||||
config_foreach _set_ssrust_server server "method" $ss_method
|
||||
if [ "$(uci -q get shadowsocks-rust.sss0.server)" != "127.0.0.1" ]; then
|
||||
config_foreach _set_ssrust_server server "server" $vpsip
|
||||
|
@ -1647,7 +1649,7 @@ _set_config_from_vps() {
|
|||
set xray.omrout.s_vless_user_id="$xray_key"
|
||||
set xray.omrout.s_vless_port="$xray_port"
|
||||
EOF
|
||||
uci -q set xray.omrout.s_shadowsocks_password=$ss_key
|
||||
#uci -q set xray.omrout.s_shadowsocks_password=$xray_sskey
|
||||
if [ "$(uci -q get xray.omrout.s_vmess_address)" != "127.0.0.1" ]; then
|
||||
uci -q set xray.omrout.s_vmess_address="$vpsip"
|
||||
uci -q set xray.omrout.s_vless_address="$vpsip"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue