mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix omr-bypass proto interface choice
This commit is contained in:
parent
d1b193295a
commit
3ce74f1216
1 changed files with 6 additions and 3 deletions
|
@ -53,16 +53,19 @@ _bypass_proto() {
|
|||
ndpi_rules="-A omr-bypass-dpi -m ndpi --$proto -j MARK --set-mark 0x539
|
||||
$ndpi_rules"
|
||||
else
|
||||
local intfid="$(uci -q get omr-bypass.$intf.id)"
|
||||
ndpi_rules="-A omr-bypass-dpi -m ndpi --$proto -j MARK --set-mark 0x539$intfid
|
||||
$ndpi_rules"
|
||||
fi
|
||||
}
|
||||
|
||||
_intf_rule() {
|
||||
local intf="$1"
|
||||
local mode
|
||||
local intf
|
||||
config_get intf $1 masterintf
|
||||
[ -z "$intf" ] && config_get intf $1 ifname
|
||||
count=$((count+1))
|
||||
local mode
|
||||
config_get mode $1 multipath "off"
|
||||
[ "$mode" = "off" ] && return
|
||||
ipset -q flush ss_rules_dst_bypass_$intf > /dev/null 2>&1
|
||||
ipset -q flush ss_rules6_dst_bypass_$intf > /dev/null 2>&1
|
||||
ipset -q --exist restore <<-EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue