From 6cf3200ac66aabf9e7e72c8ba6d467a38658a4b6 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sat, 30 Nov 2024 22:52:01 +0700 Subject: [PATCH] updated network.sh --- .bash.d/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash.d/network.sh b/.bash.d/network.sh index dee782770b7..296fbc16857 100644 --- a/.bash.d/network.sh +++ b/.bash.d/network.sh @@ -170,7 +170,7 @@ halfopen(){ get_gw(){ local gw - gw="$(netstat -rn | awk '/^default/ {print $2;exit}')" + gw="$(netstat -rn | awk '/^default.*\./ {print $2;exit}')" if [ -z "$gw" ]; then echo "Could not find gateway, no default route! " >&2 return 1