feat: LAN detection via ping probe for Tailscale clients at home
Deploy Dashboard / deploy (push) Successful in 1m16s
Deploy Dashboard / deploy (push) Successful in 1m16s
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
fetch("/api/client-ip").then(r => r.json()).then(d => {
|
||||
if (d.ip?.startsWith("192.168.31.")) lanReachable = true;
|
||||
if (d.lan) lanReachable = true;
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user