diff options
Diffstat (limited to 'templates/service')
-rw-r--r-- | templates/service/dns/forward/ignore-interface/node.def | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/service/dns/forward/ignore-interface/node.def b/templates/service/dns/forward/ignore-interface/node.def index 5355eecf..f3c80832 100644 --- a/templates/service/dns/forward/ignore-interface/node.def +++ b/templates/service/dns/forward/ignore-interface/node.def @@ -15,5 +15,5 @@ syntax:expression: exec " exit 1 " allowed: local -a array ; - array=($(awk '$1 ~ /:$/ { print $1 }' /proc/net/dev)); - echo -n ${array[@]%:} + array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev)); + echo -n ${array[@]%:*} |