+ We recognize you because you are accessing this page from{" "} + + {auth.viewerIdentity.nodeName || auth.viewerIdentity.nodeIP} + +
++ This web interface is running in read-only mode.{" "} + + Learn more → + +
++ {!hasEditCaps ? ( + // ACLs allow access, but user isn't allowed to edit any features, + // restricted to readonly. No point in sending them over to the + // tailscaleIP:5252 address. + <> + You don’t have permission to make changes to this device, but + you can view most of its details. + > + ) : !node.ACLAllowsAnyIncomingTraffic ? ( + // Tailnet ACLs don't allow access to anyone. + <> + The current tailnet policy file does not allow connecting to + this device. + > + ) : ( + // ACLs don't allow access to this user specifically. + <> + Cannot access this device’s Tailscale IP. Make sure you are + connected to your tailnet, and that your policy file allows + access. + > + )}{" "} + + Learn more → + +
+ > + ) : ( + // User can connect to Tailcale IP; sign in when ready. + <> ++ You can see most of this device’s details. To make changes, you need + to sign in. +
+ {https && ( + // we don't know if the user can connect over TS, so + // provide extra tips in case they have trouble. ++ Make sure you are connected to your tailnet, and that your policy + file allows access. +
+ )} +- This web interface is running in read-only mode.{" "} - - Learn more → - + To make changes, sign in to confirm your identity. This extra step + helps us keep your device secure.
- ) : !auth.viewerIdentity ? ( - // User is not connected over Tailscale. - // These states are only possible on the login client. - <> - {!canConnectOverTS ? ( - <> -- {!node.ACLAllowsAnyIncomingTraffic ? ( - // Tailnet ACLs don't allow access. - <> - The current tailnet policy file does not allow - connecting to this device. - > - ) : ( - // ACLs allow access, but user can't connect. - <> - Cannot access this device’s Tailscale IP. Make sure you - are connected to your tailnet, and that your policy file - allows access. - > - )}{" "} - - Learn more → - -
- > - ) : ( - // User can connect to Tailcale IP; sign in when ready. - <> -- You can see most of this device’s details. To make changes, - you need to sign in. -
- {isHTTPS && ( - // we don't know if the user can connect over TS, so - // provide extra tips in case they have trouble. -- Make sure you are connected to your tailnet, and that your - policy file allows access. -
- )} -- To make changes, sign in to confirm your identity. This extra - step helps us keep your device secure. -
-- You don’t have permission to make changes to this device, but you - can view most of its details. -
- )} - > - )} - {auth.viewerIdentity && ( - <> -- We recognize you because you are accessing this page from{" "} - - {auth.viewerIdentity.nodeName || auth.viewerIdentity.nodeIP} - -
-+ You don’t have permission to make changes to this device, but you + can view most of its details.{" "} + + Learn more → + +
+ ))} +