network

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() string

获取本地IP

func GetRealIP

func GetRealIP(request *http.Request) (string, error)

GetRealIP, 获取 Request 的真实 IP

func IsLocalIP

func IsLocalIP(request *http.Request) (bool, error)

IsLocalIP, 检查是否为本地 IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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