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:
parent
8b6e153249
commit
e7faf2963d
2 changed files with 15 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue