Versions in this module Expand all Collapse all v1 v1.7.3 Feb 5, 2024 Changes in this version + const MaxPktBuf + func AllowAllFunc(_, _ net.Addr) bool + func AllowByRatelimit(z rlzone.Ratelimiter[netip.Addr]) func(net.Addr, net.Addr) bool + func FixedTimeLimitFunc(d time.Duration) func() time.Duration + func GenPSK(length int) ([]byte, error) + func GenPSKHex(length int) (string, error) + func NetAddrToNetipAddrPort(a net.Addr) netip.AddrPort + func PSKFromHex(input string) ([]byte, error) + func PairConn(ctx context.Context, left, right net.Conn, idleTimeout time.Duration, ...) + func TimeLimitFunc(low, high time.Duration) func() time.Duration + type DynDialer struct + func NewDynDialer(ep func() string, dial func(context.Context, string, string) (net.Conn, error)) DynDialer + func (d DynDialer) DialContext(ctx context.Context, network string) (net.Conn, error) + type StaleMode int + const BothStale + const EitherStale + const LeftStale + const RightStale + func (m *StaleMode) Set(val string) error + func (m *StaleMode) String() string