我正在使用kohana 3.2,并且我想从request类访问客户端ip,在documentation中我可以看到应该包含客户端ip的public static string $client_ip,现在如果我尝试访问它,我会这样:
Request::$client_ip;我得到:string(3) "::1"它完全没有意义,我做错了什么,或者它可能是不可能访问它的?
发布于 2012-07-20 02:30:02
您在本地访问脚本,则您的IPv6地址为::1
https://stackoverflow.com/questions/11565190
复制相似问题