walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.

Home Page:http://www.workerman.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] 监听[::]22348地址,REMOTE_ADDR获取不到客户端ip

BlackSky110 opened this issue · comments

测试环境: docker

  • workerman: 4.1.14
  • php8.3
  • ubuntu2004

测试

  • 监听[::],使用ipv4和ipv6连接,REMOTE_ADDR=0.0.0.0
  • 监听0.0.0.0,ipv4连接是正常的

image

发错地方了,这个是workerman项目,workerman使用ipv6没问题。
gatewayWorker不支持ipv6。