1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Fix Shadowsocks-Rust

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-24 07:40:16 +01:00
parent 660e84c205
commit 567d6a3e00

View file

@ -88,6 +88,7 @@ ss_xxx() {
json_add_boolean mptcp "$mptcp"
#[ "$cfgtype" != "ss_local" ] && json_add_string protocol "${cfgtype/ss_/}"
if [ "$cfgtype" != "ss_tunnel" ]; then
[ "$cfgtype" != "ss_local" ] && json_add_string protocol "${cfgtype/ss_/}"
[ -z "$local_address" ] || json_add_string local_address "$local_address"
[ -z "$local_port" ] || json_add_int local_port "$local_port"
[ -z "$local_ipv4_address" ] || json_add_string local_ipv4_address "$local_ipv4_address"