mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Force disable Fast Open for Shadowsocks Rust/Go
This commit is contained in:
parent
1f152e63c9
commit
bea73de8fc
2 changed files with 6 additions and 19 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
|
||||
}
|
||||
|
|
|
@ -7,25 +7,10 @@ config ss_redir hi1
|
|||
option fast_open 0
|
||||
option verbose 0
|
||||
option syslog 1
|
||||
option reuse_port 1
|
||||
option reuse_port 0
|
||||
option mptcp 1
|
||||
option ipv6_first 1
|
||||
option no_delay 1
|
||||
|
||||
config ss_redir hi2
|
||||
option server 'sss0'
|
||||
option local_address '0.0.0.0'
|
||||
option local_port '1100'
|
||||
option mode 'tcp_and_udp'
|
||||
option timeout '1000'
|
||||
option fast_open 1
|
||||
option verbose 0
|
||||
option syslog 1
|
||||
option reuse_port 1
|
||||
option mptcp 1
|
||||
option ipv6_first 1
|
||||
option no_delay 1
|
||||
option disabled 1
|
||||
option no_delay 0
|
||||
|
||||
config ss_rules 'ss_rules'
|
||||
option disabled 0
|
||||
|
@ -39,7 +24,7 @@ config server 'sss0'
|
|||
option disabled 1
|
||||
option server '192.168.1.3'
|
||||
option server_port '65280'
|
||||
option key ''
|
||||
option password ''
|
||||
option method '2022-blake3-aes-256-gcm'
|
||||
option obfs 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue