Versions in this module Expand all Collapse all v0 v0.0.1 Jun 11, 2020 Changes in this version + 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 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 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{}