mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Fix in OMR-ByPass to enable ACCEPT rule when it should be
This commit is contained in:
parent
89da647175
commit
8f237144e7
1 changed files with 2 additions and 0 deletions
|
@ -62,10 +62,12 @@ _bypass_ip() {
|
|||
uci -q add_list firewall.omr_dst_bypass_${type}_4.entry="$ip"
|
||||
uci -q set firewall.omr_dst_bypass_${type}_4.enabled='1'
|
||||
uci -q set firewall.omr_dst_bypass_${type}_dstip_4.enabled='1'
|
||||
uci -q set firewall.omr_dst_bypass_${type}_dstip_4_accept.enabled='1'
|
||||
elif [ "$valid_ip6" = "ok" ]; then
|
||||
uci -q add_list firewall.omr_dst_bypass_${type}_6.entry="$ip"
|
||||
uci -q set firewall.omr_dst_bypass_${type}_6.enabled='1'
|
||||
uci -q set firewall.omr_dst_bypass_${type}_dstip_6.enabled='1'
|
||||
uci -q set firewall.omr_dst_bypass_${type}_dstip_6_accept.enabled='1'
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue