projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5b1b0b
)
Net/XMPP/XMLStream.php
author
edward
<edward@roojs.com>
Thu, 11 Jan 2018 08:08:27 +0000
(16:08 +0800)
committer
edward
<edward@roojs.com>
Thu, 11 Jan 2018 08:08:27 +0000
(16:08 +0800)
Net/XMPP/XMLStream.php
patch
|
blob
|
history
diff --git
a/Net/XMPP/XMLStream.php
b/Net/XMPP/XMLStream.php
index
d5c9425
..
c52668c
100644
(file)
--- a/
Net/XMPP/XMLStream.php
+++ b/
Net/XMPP/XMLStream.php
@@
-345,8
+345,10
@@
class Net_XMPP_XMLStream {
$conflag = STREAM_CLIENT_CONNECT;
}
$conntype = 'tcp';
- if ($this->use_ssl)
+ if ($this->use_ssl)
{
$conntype = 'ssl';
+ }
+
$this->log->log("Connecting to $conntype://{$this->host}:{$this->port}");
try {
$this->socket = @stream_socket_client("$conntype://{$this->host}:{$this->port}", $errno, $errstr, $timeout, $conflag);