Versions in this module Expand all Collapse all v0 v0.29.4 Aug 12, 2023 Changes in this version + const CacheTime + const MappingDuration + var ErrNoMapping = errors.New("mapping not established") + type NAT struct + func DiscoverNAT(ctx context.Context) (*NAT, error) + func (nat *NAT) AddMapping(ctx context.Context, protocol string, port int) error + func (nat *NAT) Close() error + func (nat *NAT) GetMapping(protocol string, port int) (addr netip.AddrPort, found bool) + func (nat *NAT) RemoveMapping(ctx context.Context, protocol string, port int) error