mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
client/web: fix ts connection check
Updates #10261 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:

committed by
Sonia Appasamy

parent
8c2fcef453
commit
dd0279a6c9
@@ -106,10 +106,8 @@ function LoginPopoverContent({
|
||||
}
|
||||
setIsRunningCheck(true)
|
||||
fetch(`http://${node.IPv4}:5252/ok`, { mode: "no-cors" })
|
||||
.then((r) => {
|
||||
if (r.ok) {
|
||||
setCanConnectOverTS(true)
|
||||
}
|
||||
.then(() => {
|
||||
setCanConnectOverTS(true)
|
||||
setIsRunningCheck(false)
|
||||
})
|
||||
.catch(() => setIsRunningCheck(false))
|
||||
|
Reference in New Issue
Block a user