summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/dns/forward/ignore-interface/node.def4
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[@]%:*}