From 11681a878f9b7478808d88905c686e8fa41ccfd2 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Wed, 9 Oct 2024 11:12:42 +0200 Subject: [PATCH] Enable TCP Fast Open on Shadowsocks Rust by default --- openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks | 2 ++ shadowsocks-rust/files/shadowsocks-rust.config | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks b/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks index 1c339219b..437ede096 100755 --- a/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks +++ b/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks @@ -120,8 +120,10 @@ if [ -z "$(uci -q get shadowsocks-rust.hi1.keep_alive)" ]; then uci -q batch <<-EOF > /dev/null set shadowsocks-rust.hi1.keep_alive=15 set shadowsocks-rust.hi1.no_delay=1 + set shadowsocks-rust.hi1.fast_open=1 set shadowsocks-rust.hi2.keep_alive=15 set shadowsocks-rust.hi2.no_delay=1 + set shadowsocks-rust.hi2.fast_open=1 commit shadowsocks-rust EOF fi diff --git a/shadowsocks-rust/files/shadowsocks-rust.config b/shadowsocks-rust/files/shadowsocks-rust.config index c12db84c6..498783762 100644 --- a/shadowsocks-rust/files/shadowsocks-rust.config +++ b/shadowsocks-rust/files/shadowsocks-rust.config @@ -5,7 +5,7 @@ config ss_redir hi1 option mode 'tcp_and_udp' option timeout '1000' option keep_alive '15' - option fast_open 0 + option fast_open 1 option verbose 0 option syslog 1 option reuse_port 0 @@ -20,7 +20,7 @@ config ss_redir hi2 option mode 'tcp_and_udp' option timeout '1000' option keep_alive '15' - option fast_open 0 + option fast_open 1 option verbose 0 option syslog 1 option reuse_port 0