package
0.9.11
Repository: https://github.com/safing/portmaster.git
Documentation: pkg.go.dev

# Functions

CheckAndGetOnlineStatus triggers a new online status check and returns the result.
Gateways returns the currently active gateways.
GetApproximateInternetLocation returns the approximate Internet location.
GetAssignedAddresses returns the assigned IPv4 and IPv6 addresses of the host.
GetAssignedGlobalAddresses returns the assigned global IPv4 and IPv6 addresses of the host.
GetCaptivePortal returns the current captive portal.
GetInternetLocation returns the possible device locations.
GetLocalNetwork uses the given IP to search for a network configured on the device and returns it.
GetNetworkChangedFlag returns a flag to be notified about a network change.
GetOnlineStatus returns the current online stats.
IPv6Enabled returns whether the device has an active IPv6 stack.
IsConnectivityDomain checks whether the given domain (fqdn) is used for any connectivity related network connections and should always be resolved using the network assigned DNS server.
IsMyIP returns whether the given unicast IP is currently configured on the local host.
ListenToICMP returns a new channel for listenting to icmp packets.
Nameservers returns the currently active nameservers.
Online returns true if online status is either SemiOnline or Online.
ReportFailedConnection hints the online status monitoring system that a connection attempt has failed.
ReportSuccessfulConnection hints the online status monitoring system that a connection attempt was successful.
SetInternetLocation provides the location management system with a possible Internet location.
SetLocalAddrFactory supplies the environment package with a function to get permitted local addresses for connections.
SubmitPacketToICMPListener checks if an ICMP packet should be submitted to the listener.

# Constants

Event Names.
Event Names.
Event Names.
Location Sources.
Location Sources.
Location Sources.
Location Sources.
Location Sources.
Location Sources.
local network only.
Online Status Values.
Online Status Values.
there seems to be an internet connection, but we are being intercepted, possibly by a captive portal.
we seem to online, but without full connectivity.
Online Status Values.

# Variables

Online Status and Resolver.
Online Status and Resolver.
ConnectivityDomains holds all connectivity domains.
Online Status and Resolver.
Ascii: \0ACK.
Online Status and Resolver.
Online Status and Resolver.
Online Status and Resolver.
SpecialCaptivePortalDomain is the domain name used to point to the detected captive portal IP or the captive portal test IP.

# Structs

CaptivePortal holds information about a detected captive portal.
DeviceLocation represents a single IP and metadata.
DeviceLocations holds multiple device locations.
Nameserver describes a system assigned namserver.

# Type aliases

DeviceLocationSource is a location source.
OnlineStatus represent a state of connectivity to the Internet.