From 1b556752010badf6eb78ef3cd2b3e10b09c3ec43 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Thu, 26 Feb 2026 03:24:02 +0800 Subject: [PATCH] fix: ping router instead of Mac for LAN detection --- dashboard/backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/backend/main.py b/dashboard/backend/main.py index 40f43b6..b6717d5 100644 --- a/dashboard/backend/main.py +++ b/dashboard/backend/main.py @@ -123,7 +123,7 @@ async def client_ip(request: Request): if ip.startswith("100."): try: proc = await asyncio.create_subprocess_exec( - "ping", "-c", "1", "-W", "1", "192.168.31.2", + "ping", "-c", "1", "-W", "1", "192.168.31.1", stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL, ) return {"ip": ip, "lan": await asyncio.wait_for(proc.wait(), 2) == 0}