소스 검색

support ipv6

walkor 9 년 전
부모
커밋
feb3937a4e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Connection/TcpConnection.php

+ 1 - 1
Connection/TcpConnection.php

@@ -307,7 +307,7 @@ class TcpConnection extends ConnectionInterface
     {
         $pos = strrpos($this->_remoteAddress, ':');
         if ($pos) {
-            return substr($this->_remoteAddress, 0, $pos);
+            return trim(substr($this->_remoteAddress, 0, $pos), '[]');
         }
         return '';
     }