From 1f152e63c9bc0683aa3a472b8910d6529fb5a075 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 3 Oct 2023 17:51:43 +0200 Subject: [PATCH] Fixes on Shadowsocks to VPS --- openmptcprouter/files/etc/init.d/openmptcprouter-vps | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openmptcprouter/files/etc/init.d/openmptcprouter-vps b/openmptcprouter/files/etc/init.d/openmptcprouter-vps index 48398be4ea..44df06797c 100755 --- a/openmptcprouter/files/etc/init.d/openmptcprouter-vps +++ b/openmptcprouter/files/etc/init.d/openmptcprouter-vps @@ -1584,17 +1584,17 @@ _set_config_from_vps() { ss_port="65280" #ss_fast_open="$(echo "$vps_config" | jsonfilter -q -e '@.shadowsocks-rust.fast_open')" config_load shadowsocks-rust - #config_foreach _set_ss_redir ss_redir "fast_open" $ss_fast_open - #config_foreach _set_ss_redir ss_local "fast_open" $ss_fast_open + #config_foreach _set_ssrust_redir ss_redir "fast_open" $ss_fast_open + #config_foreach _set_ssrust_redir ss_local "fast_open" $ss_fast_open uci -q batch <<-EOF >/dev/null set shadowsocks-rust.sss0.password=$ssgo_sskey set shadowsocks-rust.sss0.server_port=$ss_port set shadowsocks-rust.sss0.method=$ss_method EOF - config_foreach _set_ss_server server "key" $ssgo_sskey - config_foreach _set_ss_server server "method" $ss_method + config_foreach _set_ssrust_server server "key" $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_ss_server server "server" $vpsip + config_foreach _set_ssrust_server server "server" $vpsip fi uci -q commit shadowsocks-rust if [ "$(uci -q get shadowsocks-rust.sss0.disabled)" != "1" ]; then