remoteip

package
v1.1.64 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExcludeIPS = map[string]bool{}
)

Functions

func Get

func Get(r *http.Request) string

Get returns the remote IP address from the request.

func RemoteIPs added in v1.1.58

func RemoteIPs(r *http.Request) map[string]string

Get returns the remote IP address from the request.

Types

type CIDRRange added in v1.1.58

type CIDRRange []*net.IPNet

func NewCIDRRange added in v1.1.58

func NewCIDRRange(in []string) (CIDRRange, error)

NewCIDRRange converts a slice of IP address strings into an IPList of IPNets (CIDRs)

Jump to

Keyboard shortcuts

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