Versions in this module Expand all Collapse all v0 v0.0.1 Feb 26, 2024 Changes in this version + func AddQuitSignal(group *run.Group) + type Entry struct + MaxPort int + MinPort int + Value T + func (e Entry[T]) IsPortAllowed(port int) bool + func (e Entry[T]) String() string + type QuicConn struct + LAddr net.Addr + RAddr net.Addr + func (c *QuicConn) LocalAddr() net.Addr + func (c *QuicConn) RemoteAddr() net.Addr + type Whitelist struct + Hosts []Entry[string] + IPs []Entry[net.IP] + Networks []Entry[*net.IPNet] + Zones []Entry[string] + func NewWhitelist() *Whitelist + func WhitelistFromStrings(strings []string) *Whitelist + func (p *Whitelist) AddFromString(s string) + func (p *Whitelist) AddHost(host string, minPort, maxPort int) + func (p *Whitelist) AddIP(ip net.IP, minPort, maxPort int) + func (p *Whitelist) AddNetwork(ipNet *net.IPNet, minPort, maxPort int) + func (p *Whitelist) AddZone(zone string, minPort, maxPort int) + func (p *Whitelist) Contains(ctx context.Context, network, addr string, opts ...gost.BypassOption) bool + func (p *Whitelist) IsAddrAllowed(host string, port int) bool + func (p *Whitelist) IsPortAllowed(port int, entry *Entry[any]) bool