fennb / phirehose

PHP interface to Twitter Streaming API
706 stars 189 forks source link

fsockopen peer certificate did not match #107

Closed nimisis closed 3 years ago

nimisis commented 7 years ago

When starting filter-track.php, I got the a "peer certificate did not match" error at line 649 of Phirehose.php, so I changed

@$this->conn = fsockopen($scheme . $streamIP, $port, $errNo, $errStr, $this->connectTimeout);

to

@$this->conn = fsockopen($scheme . $urlParts['host'], $port, $errNo, $errStr, $this->connectTimeout);

and it worked.