diff options
-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); |