checks

package
v0.0.0-...-92a79cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCaptivePortal

func CheckCaptivePortal() error

func CheckNameserverAvailability

func CheckNameserverAvailability(s string) error

func CheckReachabilityWithICMP

func CheckReachabilityWithICMP(host string) (string, error)

func FindActiveExitNodeFromPeersMap

func FindActiveExitNodeFromPeersMap(peers map[key.NodePublic]*ipnstate.PeerStatus) *ipnstate.PeerStatus

func GetClashApiBaseUrl

func GetClashApiBaseUrl() (string, error)

func GetCloudflareEdgeTrace

func GetCloudflareEdgeTrace() (string, error)

func GetDefaultNameserver

func GetDefaultNameserver() (string, error)

func GetDefaultRoute

func GetDefaultRoute() (net.IP, string, error)

func GetTailscaleStatus

func GetTailscaleStatus() string

func IsRandomDomainResolvedToClashAddressSpace

func IsRandomDomainResolvedToClashAddressSpace() bool

Types

type ClashAPIRootResponse

type ClashAPIRootResponse struct {
	Hello   string `json:"hello,omitempty"`   // clash
	Message string `json:"message,omitempty"` // Unauthorized
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL