walkor 3 жил өмнө
parent
commit
03c08124c7

+ 1 - 1
Connection/UdpConnection.php

@@ -75,7 +75,7 @@ class UdpConnection extends ConnectionInterface
                 return;
             }
         }
-        return \strlen($send_buffer) === \stream_socket_sendto($this->_socket, $send_buffer, 0, $this->_remoteAddress);
+        return \strlen($send_buffer) === \stream_socket_sendto($this->_socket, $send_buffer, 0, $this->isIpV6() ? '[' . $this->getRemoteIp() . ']:' . $this->getRemotePort() : $this->_remoteAddress);
     }
 
     /**