Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRealAddr ¶
GetRealAddr get x-real-ip nginx config eg: "rpc_set_header X-Real-IP $remote_addr;"
func GetRealPeerAddr ¶
GetRealPeerAddr returns real ip when exist, otherwise returns peer ip.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.