mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
we actually use xmlrpcbaseurl here, not product_website
This commit is contained in:
parent
1274cfd47d
commit
13e6fb2e02
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user