diff --git a/wx/WxClient.php b/wx/WxClient.php index ecb0976..dcfa360 100644 --- a/wx/WxClient.php +++ b/wx/WxClient.php @@ -141,7 +141,8 @@ class WxClient */ private function getHostIp() { - return array_shift(\Co::getAddrInfo($this->host)); + $host = \Co::getAddrInfo($this->host); + return array_shift($host); } /**