summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-13 16:45:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-13 16:45:49 +0000
commit71e0e7be2fd94298c41d47f545b5f60cb2e1597d (patch)
treeeeedeee3d952861468cb1d42bdf2bd4b383b803f /etc/inc
parentc07d326eebcaaf963b16c05d93cee0aa5f192fd3 (diff)
downloadpfsense-71e0e7be2fd94298c41d47f545b5f60cb2e1597d.zip
pfsense-71e0e7be2fd94298c41d47f545b5f60cb2e1597d.tar.gz
If the webGUI port is empty, rely on the protocol selection
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index fc52b46..05ab659 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2351,6 +2351,13 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen
$msg = new XML_RPC_Message($method, $params);
if($config['system']['webgui']['port'] != "") {
$port = $config['system']['webgui']['port'];
+ /* if port is empty lets rely on the protocol selection */
+ if($port == "") {
+ if($config['system']['webgui']['protocol'] == "http")
+ $port = "80";
+ else
+ $port = "443";
+ }
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
} else {
$cli = new XML_RPC_Client('/xmlrpc.php', $url);
OpenPOWER on IntegriCloud