Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLocalIpv4 ¶
func GetClientIP ¶ added in v0.0.5
func GetClientIP(c *app.RequestContext) string
GetClientIP 从 hertz 的 RequestContext 获取客户端 IP 地址 优先检查 X-Forwarded-For、X-Real-IP 等代理头,最后使用 RemoteAddr
func GetLocalIPv4 ¶
func MustGetLocalIPv4 ¶
func MustGetLocalIPv4() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.