From 0a32fe8576a4cddcebf14499ea4f633ecbac4aae Mon Sep 17 00:00:00 2001 From: Patsie Date: Wed, 18 Aug 2021 11:46:10 +0200 Subject: [PATCH] Fix awk assignment instead of comparisson --- iptables_bpf | 2 +- iptables_bpf_chain | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iptables_bpf b/iptables_bpf index e8cc684..feb0062 100755 --- a/iptables_bpf +++ b/iptables_bpf @@ -39,7 +39,7 @@ set -o pipefail : ${IPTABLES:="%(iptables)s"} : ${IPSET:="ipset"} : ${INPUTPLACE:="1"} -: ${DEFAULTINT:=`awk 'BEGIN {n=0} $2 == "00000000" {n=1; print $1; exit} END {if (n=0) {print "eth0"}}' /proc/net/route`} +: ${DEFAULTINT:=`awk 'BEGIN {n=0} $2 == "00000000" {n=1; print $1; exit} END {if (n==0) {print "eth0"}}' /proc/net/route`} iptablesrule () { ${IPTABLES} \ diff --git a/iptables_bpf_chain b/iptables_bpf_chain index 797769c..2af2247 100755 --- a/iptables_bpf_chain +++ b/iptables_bpf_chain @@ -28,7 +28,7 @@ set -o pipefail : ${IPTABLES:="%(iptables)s"} : ${IPSET:="ipset"} : ${INPUTPLACE:="1"} -: ${DEFAULTINT:=`awk 'BEGIN {n=0} $2 == "00000000" {n=1; print $1; exit} END {if (n=0) {print "eth0"}}' /proc/net/route`} +: ${DEFAULTINT:=`awk 'BEGIN {n=0} $2 == "00000000" {n=1; print $1; exit} END {if (n==0) {print "eth0"}}' /proc/net/route`} main_match () { ${IPTABLES} \