Versions in this module Expand all Collapse all v0 v0.1.1 Jan 21, 2024 v0.1.0 Jan 14, 2024 Changes in this version + func AddrIP(addr net.Addr) net.IP + func CheckRelayIP(sender, addr net.IP) error + func IsLAN(ip net.IP) bool + func IsSpecialNetwork(ip net.IP) bool + func IsTemporaryError(err error) bool + func IsTimeout(err error) bool + func SameNet(bits uint, ip, other net.IP) bool + type DistinctNetSet struct + Limit uint + Subnet uint + func (s *DistinctNetSet) Add(ip net.IP) bool + func (s *DistinctNetSet) Remove(ip net.IP) + func (s DistinctNetSet) Contains(ip net.IP) bool + func (s DistinctNetSet) Len() int + func (s DistinctNetSet) String() string + type IPTracker struct + func NewIPTracker(window, contactWindow time.Duration, minStatements int) *IPTracker + func (it *IPTracker) AddContact(host string) + func (it *IPTracker) AddStatement(host, endpoint string) + func (it *IPTracker) PredictEndpoint() string + func (it *IPTracker) PredictFullConeNAT() bool + type Netlist []net.IPNet + func ParseNetlist(s string) (*Netlist, error) + func (l *Netlist) Add(cidr string) + func (l *Netlist) Contains(ip net.IP) bool + func (l *Netlist) UnmarshalTOML(fn func(interface{}) error) error + func (l Netlist) MarshalTOML() interface{}