From e959dc316f4bfcb3443ee3e5b0231775318cbd78 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 4 Apr 2022 13:24:30 +0200 Subject: [PATCH] Fix bypass error when device is a path --- luci-app-omr-bypass/root/etc/init.d/omr-bypass | 1 + 1 file changed, 1 insertion(+) diff --git a/luci-app-omr-bypass/root/etc/init.d/omr-bypass b/luci-app-omr-bypass/root/etc/init.d/omr-bypass index 5220f47e2..87878277b 100755 --- a/luci-app-omr-bypass/root/etc/init.d/omr-bypass +++ b/luci-app-omr-bypass/root/etc/init.d/omr-bypass @@ -511,6 +511,7 @@ _intf_rule() { intf=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]') [ -n "$(echo $intf | grep '@')" ] && intf=$(ifstatus "$1" | jsonfilter -q -e '@["device"]') [ -z "$intf" ] && config_get intf $1 device + [ -n "$(echo $intf | grep '/') " ] && return #count=$((count+1)) config_get count $1 metric local mode