mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 16:40:21 -06:00
Update error_interfaces
This commit is contained in:
@@ -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;")
|
||||
|
||||
Reference in New Issue
Block a user