From c1a32117eca5c646b81692416a208cf236695b66 Mon Sep 17 00:00:00 2001 From: Root THC Date: Mon, 10 Mar 2025 09:34:26 +0000 Subject: [PATCH] typos --- tools/ghostip.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ghostip.sh b/tools/ghostip.sh index 18ac2c6..a196668 100755 --- a/tools/ghostip.sh +++ b/tools/ghostip.sh @@ -383,6 +383,9 @@ ghost_up2() { [ "$GHOST_IP_LAN" != "-1" ] && { ghost_lan || return; } + # Return if this is not a router. + [ "$single_dev" == "$gw_dev" ] && return + [ "${GHOST_IP_WAN:-$GHOST_IP}" != "-1" ] && { ghost_ip="${GHOST_IP_WAN:-$GHOST_IP}" single_dev="$gw_dev"