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

Can choose interface for bypass traffic

This commit is contained in:
Ycarus 2018-06-27 20:04:14 +02:00
parent 9598b30c1a
commit 932cb1fa04
3 changed files with 36 additions and 1 deletions

View file

@ -1,3 +1,5 @@
config defaults
config bypass 'ips'
config bypass 'dpi'

View file

@ -13,6 +13,12 @@ if [ "$(uci -q get omr-bypass.dpi)" = "" ]; then
EOF
fi
if [ "$(uci -q get omr-bypass.default)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set omr-bypass.defaults=defaults
EOF
fi
if [ "$(uci -q get ucitrack.@shadowsocks-libev[-1].affects)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set ucitrack.@shadowsocks-libev[-1].affects=omr-bypass