mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
OMR-Bypass iptables changes
This commit is contained in:
parent
5b3785a559
commit
56e9d1d158
3 changed files with 37 additions and 23 deletions
|
@ -49,9 +49,9 @@ if [ -n "$(uci -q get dhcp.dnsmasq[0].ipset)" ]; then
|
|||
}
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get ucitrack.@shadowsocks-libev[-1].affects | grep omr-bypass)" != "" ]; then
|
||||
if [ "$(uci -q get ucitrack.@shadowsocks-libev[-1].affects | grep omr-bypass)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
del_list ucitrack.@shadowsocks-libev[-1].affects=omr-bypass
|
||||
add_list ucitrack.@shadowsocks-libev[-1].affects=omr-bypass
|
||||
EOF
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue