Documentation
¶
Overview ¶
Package network contains helpers for deciding which network destinations Wings may connect to on behalf of a user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllowed ¶
IsAllowed reports whether a connection to the address, resolved from the host, is allowed by an allowlist configured by the operator. Entries may be host names, IP addresses or CIDR ranges.
func IsInternal ¶
IsInternal reports whether the address is anything other than a globally reachable unicast address.
func LimitListener ¶
LimitListener returns a listener that accepts at most n connections at once, like netutil.LimitListener. Once the limit is reached, new connections wait for an open one to close without anything else being logged, so this logs a warning, at most once a minute, whenever the limit is reached.
Types ¶
This section is empty.