we actually use xmlrpcbaseurl here, not product_website

This commit is contained in:
Chris Buechler 2014-03-13 02:18:15 -05:00
parent 1274cfd47d
commit 13e6fb2e02

View File

@ -661,13 +661,13 @@ function rmdir_recursive($path,$follow_links=false) {
}
/*
* call_pfsense_method(): Call a method exposed by the pfsense.com XMLRPC server.
* call_pfsense_method(): Call a method exposed by the pfsense.org XMLRPC server.
*/
function call_pfsense_method($method, $params, $timeout = 0) {
global $g, $config;
$ip = gethostbyname($g['product_website']);
if($ip == $g['product_website'])
$ip = gethostbyname($g['xmlrpcbaseurl']);
if($ip == $g['xmlrpcbaseurl'])
return false;
$xmlrpc_base_url = isset($config['system']['altpkgrepo']['enable']) ? $config['system']['altpkgrepo']['xmlrpcbaseurl'] : $g['xmlrpcbaseurl'];