Skip to content

Commit

Permalink
Force disable Fast Open for Shadowsocks Rust/Go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Oct 4, 2023
1 parent 1f152e6 commit bea73de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
4 changes: 3 additions & 1 deletion openmptcprouter/files/etc/init.d/openmptcprouter-vps
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
21 changes: 3 additions & 18 deletions shadowsocks-rust/files/shadowsocks-rust.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit bea73de

Please sign in to comment.