summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-03-23 19:14:28 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-03-23 19:14:28 -0400
commitd322e3b37fea3f53117ebdaeb9737f0000d46c82 (patch)
tree40f27519f1f98298a3f47075b7f3975caab227f6 /etc/inc/captiveportal.inc
parentd421e31930e8fc036b70eb0af4fc08872147fb75 (diff)
downloadpfsense-d322e3b37fea3f53117ebdaeb9737f0000d46c82.zip
pfsense-d322e3b37fea3f53117ebdaeb9737f0000d46c82.tar.gz
Fix voucher disconnect sync issue
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index ef59446..f8c0ccd 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -881,6 +881,17 @@ function captiveportal_disconnect($dbent, $radiusservers,$term_cause = 1,$stop_t
/* Release the ruleno so it can be reallocated to new clients. */
captiveportal_free_ipfw_ruleno($dbent[1]);
+
+ // XMLRPC Call over to the master Voucher node
+ $a_voucher = &$config['voucher'];
+ if(!empty($a_voucher['vouchersyncdbip'])) {
+ $syncip = $a_voucher['vouchersyncdbip'];
+ $syncport = $a_voucher['vouchersyncport'];
+ $syncpass = $a_voucher['vouchersyncpass'];
+ $vouchersyncusername = $a_voucher['vouchersyncusername'];
+ $remote_status = xmlrpc_sync_voucher_disconnect($dben, $syncip, $syncport, $syncpass, $vouchersyncusername, $term_cause, $stop_time);
+ }
+
}
/* remove a single client by sessionid */
OpenPOWER on IntegriCloud