package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

NewDialContext returns a DialContext for Transport, the DialContext will do allow/block list check.
ParseHostMatchList parses the host list HostMatchList.
ParseSimpleMatchList parse a simple matchlist (no built-in networks, no CIDR support, only wildcard pattern match).

# Constants

MatchBuiltinExternal A valid non-private unicast IP, all hosts on public internet are matched.
MatchBuiltinLoopback 127.0.0.0/8 for IPv4 and ::1/128 for IPv6, localhost is included.
MatchBuiltinPrivate RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and RFC 4193 (FC00::/7).

# Structs

HostMatchList is used to check if a host or IP is in a list.