diff --git a/emhttp/plugins/dynamix/scripts/error_interfaces b/emhttp/plugins/dynamix/scripts/error_interfaces index 00b3b1bc1..444a4c1d0 100755 --- a/emhttp/plugins/dynamix/scripts/error_interfaces +++ b/emhttp/plugins/dynamix/scripts/error_interfaces @@ -6,7 +6,7 @@ while IFS='\n' read -r net; do [[ -n $net4 ]] && nets+=("$net4 = $net;") done <<< $(ip -br -4 addr|awk '/^(br|bond|eth|wg)[0-9]+(\.[0-9]+)?/ {print $3}'|uniq -d) -while IFS='\n' read -r net; do +while IFS=$'\n' read -r net; do net=${net%/*} net6=$(ip -br -6 addr show to $net 2>/dev/null|awk '$1 !~ "^shim" {print $1}'|tr '\n' ','|sed 's/,$//') [[ -n $net6 ]] && nets+=("$net6 = $net;")