dns_conf: conf-file option support wildcarding

This commit is contained in:
Nick Peng
2023-12-04 22:11:02 +08:00
parent cde9fe5d5c
commit 11d92a67a1
4 changed files with 133 additions and 9 deletions

View File

@@ -126,6 +126,10 @@ clear_iptable()
{
local OLD_PORT="$1"
local ipv6_server=$2
which iptables >/dev/null 2>&1
[ $? -ne 0 ] && return
IPS="$(ifconfig | grep "inet addr" | grep -v ":127" | grep "Bcast" | awk '{print $2}' | awk -F : '{print $2}')"
for IP in $IPS
do