walkor преди 3 години
родител
ревизия
03c08124c7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Connection/UdpConnection.php

+ 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);
     }
 
     /**