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

Fix interface name and add multiple server support to omr-bypass

This commit is contained in:
Ycarus 2018-12-12 21:31:32 +01:00
parent edff787f63
commit cad1cb5a06
2 changed files with 11 additions and 4 deletions

View file

@ -227,6 +227,12 @@ _bypass_ip_set() {
_bypass_ip $ip $interface
}
_bypass_omr_server() {
local ip
config_get ip $1 ip
_bypass_ip $ip
}
boot() {
BOOT=1
start "$@"
@ -262,6 +268,8 @@ start_service() {
config_foreach _intf_rule interface
local ndpi_rules=""
config_load openmptcprouter
config_foreach _bypass_omr_server server
config_load omr-bypass
config_foreach _bypass_ip_set ips
config_foreach _bypass_mac macs