重命名函数

This commit is contained in:
zhangdeman committed 2022-06-25 23:16:07 +08:00
1 parent 1be4d9eab1
commit eeeca10078
1 file changed
+2 -2
+2 -2
View File
@@ -39,12 +39,12 @@ func (i *ip) GetHostIP() string {
return hostIP
}
// GetRemoteIp 获取远端IP
// GetRemoteIP 获取远端IP
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 5:35 下午 2021/11/22
func (i *ip) GetRemoteIp(req *http.Request) string {
func (i *ip) GetRemoteIP(req *http.Request) string {
// Try via request
remoteIP, _, err := net.SplitHostPort(req.RemoteAddr)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.