iptool

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIp

func CheckIp(ipStr string) bool

func GetGlobalIPFromXforwardedFor

func GetGlobalIPFromXforwardedFor(xforwardedFor string) string

func InetAton

func InetAton(ipStr string) int64

ip to int64

func InetNtoa

func InetNtoa(ipnr int64) net.IP

int64 to IP

func IsInnerIp

func IsInnerIp(ipStr string) bool

func RealIP

func RealIP(r *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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