Skip to content

关于获取客户端 IP 的一个小请求 #164

@hacfox

Description

@hacfox

func (req *Request) RemoteIP() string {

你好,该方法无法获取更为准确且更多的客户端 IP 信息,是否可以考虑增加方法以实现更好的获取客户端信息。
比如 echo框架中的实现https://github.com/labstack/echo/blob/c54d9e8eed6ce2dfb8446ae6f9ac4eac800570bf/context.go#L258

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions