From fb5830ef33f6e1154f3441d7f13ac90bbe547b3c Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 14 Jun 2011 13:00:04 +0000 Subject: Actually correct check so it throws some errors during the second try. --- etc/rc.filter_synchronize | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/rc.filter_synchronize') diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index 460824b..c479054 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -104,7 +104,7 @@ function carp_check_version($url, $password, $port = 80, $method = 'pfsense.host /* XXX: Configurable from the GUI?! */ $username = "admin"; $cli->setCredentials($username, $password); - if($numberofruns > 1) + if($numberofruns > 0) $cli->setDebug(1); /* send our XMLRPC message and timeout after 240 seconds */ $resp = $cli->send($msg, "240"); @@ -239,7 +239,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens /* XXX: Configurable from the GUI?! */ $username = "admin"; $cli->setCredentials($username, $password); - if($numberofruns > 1) + if($numberofruns > 0) $cli->setDebug(1); /* send our XMLRPC message and timeout after 240 seconds */ $resp = $cli->send($msg, "240"); -- cgit v1.1