diff --git a/home.admin/config.scripts/internet.sh b/home.admin/config.scripts/internet.sh index bbe6f4ab6..83c3f19de 100755 --- a/home.admin/config.scripts/internet.sh +++ b/home.admin/config.scripts/internet.sh @@ -67,7 +67,7 @@ localip_ALL=$(hostname -I | awk '{print $1}') if [ $(isValidIP ${localip_ALL}) -eq 0 ]; then localip_ALL="" fi -localip_LAN=$(ip addr 2>/dev/null | grep 'state UP' -A2 | grep -E -v 'docker0|veth' | grep -E -i '(*[eth][0-9]$)*' | tail -n1 | awk '{print $2}' | cut -f1 -d'/') +localip_LAN=$(ip addr 2>/dev/null | grep 'state UP' -A2 | grep -E -v 'docker0|veth' | grep -E -i '([eth][0-9]$)*' | tail -n1 | awk '{print $2}' | cut -f1 -d'/') if [ $(isValidIP ${localip_LAN}) -eq 0 ]; then localip_LAN="" fi