1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Listen only on lan for shadowsocks-*

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-04-26 11:14:25 +02:00
parent 8b6e153249
commit e7faf2963d
2 changed files with 15 additions and 3 deletions

View file

@ -245,12 +245,18 @@ uci -q batch <<-EOF >/dev/null
set firewall.@include[0].reload='1'
commit firewall
EOF
if [ "$(uci -q get openmptcprouter.settings.sipalg)" = "" ]; then
if [ -z "$(uci -q get openmptcprouter.settings.sipalg)" ]; then
uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.sipalg='1'
commit openmptcprouter
EOF
fi
if [ -z "$(uci -q get openmptcprouter.settings.restrict_to_lan)" ]; then
uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.restrict_to_lan='1'
commit openmptcprouter
EOF
fi
if [ "$(uci -q get openmptcprouter.settings.sipalg)" = "0" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.zone_lan.auto_helper='0'