diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-26 17:38:19 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-26 17:38:28 -0200 |
commit | e85f3ed85773bb5d5a02c1d53e24bbfd040b2664 (patch) | |
tree | f2e52a026f8dbba27aaa62e6d304f1b2c341446c | |
parent | 877aa8b45ce3eb99af99f3f8a5d5a4a6b41df954 (diff) | |
download | pfsense-e85f3ed85773bb5d5a02c1d53e24bbfd040b2664.zip pfsense-e85f3ed85773bb5d5a02c1d53e24bbfd040b2664.tar.gz |
Since we moved to stream related function on xmlrpc_client, we should use tcp:// as protocol for http. Fix issue reported at https://forum.pfsense.org/index.php?topic=105890.0
-rw-r--r-- | src/etc/inc/xmlrpc_client.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/inc/xmlrpc_client.inc b/src/etc/inc/xmlrpc_client.inc index a701419..216be9f 100644 --- a/src/etc/inc/xmlrpc_client.inc +++ b/src/etc/inc/xmlrpc_client.inc @@ -614,7 +614,7 @@ class XML_RPC_Client extends XML_RPC_Base { * The protocol to use in contacting the remote server * @var string */ - var $protocol = 'http://'; + var $protocol = 'tcp://'; /** * The port for connecting to the remote server @@ -650,7 +650,7 @@ class XML_RPC_Client extends XML_RPC_Base { * The protocol to use in contacting the proxy server, if any * @var string */ - var $proxy_protocol = 'http://'; + var $proxy_protocol = 'tcp://'; /** * The port for connecting to the proxy server @@ -739,12 +739,14 @@ class XML_RPC_Client extends XML_RPC_Base { $this->port = 443; } else { $this->server = $match[2]; + $this->protocol = 'tcp://'; if ($port) { $this->port = $port; } } } elseif ($match[1] == 'http://') { $this->server = $match[2]; + $this->protocol = 'tcp://'; if ($port) { $this->port = $port; } @@ -767,12 +769,14 @@ class XML_RPC_Client extends XML_RPC_Base { $this->proxy_port = 443; } else { $this->proxy = $match[2]; + $this->proxy_protocol = 'tcp://'; if ($proxy_port) { $this->proxy_port = $proxy_port; } } } elseif ($match[1] == 'http://') { $this->proxy = $match[2]; + $this->proxy_protocol = 'tcp://'; if ($proxy_port) { $this->proxy_port = $proxy_port; } |