summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index fd06560..58df881 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2345,7 +2345,7 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen
$msg = new XML_RPC_Message($method, $params);
log_error("begin synchronize XML configuration data to $url on port $port");
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
- $cli->setCredentials('admin', $password);
+ $cli->setCredentials($config['system']['username'], $password);
$resp = $cli->send($msg);
if(!$resp) {
log_error("A communication error occured while syncing configuration data with {$url}:{$port} - " . $cli->errstr);
OpenPOWER on IntegriCloud