ip

package
v0.0.0-...-3386cd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPv4InChina

func IPv4InChina(ipv4 net.IP) bool

func InBlacklist

func InBlacklist(ip string) bool

InBlacklist returns true if the given IP is in the black list

func InChina

func InChina(ip string) bool

InChina returns true if the given IP is in China

func IsBogusNXDomain

func IsBogusNXDomain(ip string) bool

IsBogusNXDomain returns true if the given IP is bogus nxdomain

func LoadBogusNXDomain

func LoadBogusNXDomain()

LoadBogusNXDomain loads the bogus nxdomain list from file

func LoadChinaIPList

func LoadChinaIPList(forceDownload bool)

LoadChinaIPList loads china IP list from file

func LoadIPBlacklist

func LoadIPBlacklist()

LoadIPBlacklist loads the IP black list from file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL