Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes on Shadowsocks to VPS #360

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions openmptcprouter/files/etc/init.d/openmptcprouter-vps
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down