diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 16:45:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-13 16:45:49 +0000 |
commit | 71e0e7be2fd94298c41d47f545b5f60cb2e1597d (patch) | |
tree | eeedeee3d952861468cb1d42bdf2bd4b383b803f /etc | |
parent | c07d326eebcaaf963b16c05d93cee0aa5f192fd3 (diff) | |
download | pfsense-71e0e7be2fd94298c41d47f545b5f60cb2e1597d.zip pfsense-71e0e7be2fd94298c41d47f545b5f60cb2e1597d.tar.gz |
If the webGUI port is empty, rely on the protocol selection
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 7 |
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); |