package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Functions

NewDetector creates a new Detector instance for captive portal detection.

# Constants

DERPMapOther is used for an endpoint that is a DERP node, but not contained in the current preferred DERP region.
DERPMapPreferred is used for an endpoint that is a DERP node contained in the current preferred DERP region, as provided by the DERPMap.
Tailscale is used for endpoints that are the Tailscale coordination server or admin console.
Timeout is the timeout for captive portal detection requests.

# Structs

Detector checks whether the system is behind a captive portal.
Endpoint represents a URL that can be used to detect a captive portal, along with the expected result of the HTTP request.

# Type aliases

EndpointProvider is an enum that represents the source of an Endpoint.