Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector checks whether a host name resolves to a private network address.
func NewDetector ¶
NewDetector returns a new Detector instance which is initialized with the default list of IPv4/IPv6 CIDR blocks that correspond to private networks according to RFC1918.
func NewDetectorFromCIDRs ¶
NewDetectorFromCIDRs returns a new Detector instance which is initialized with the specified list of privateNetworkCIDRs.
Click to show internal directories.
Click to hide internal directories.