Actions
Bug #3001
closedCaptive portal Voucher sync on HTTPS with custom port
Start date:
05/21/2013
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0.x
Affected Architecture:
All
Description
Voucher sync between 2 pfSense instances using webGUI HTTPS with custom port (Ex. 33333) is not working.
An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with http://192.168.67.16:33333 - Code 2: Invalid return payload: enable debugging to examine incoming payload
On the below code snippet you can see that HTTPS will be used only when port == 443.
https://github.com/pfsense/pfsense/blob/master/usr/local/www/services_captiveportal_vouchers.php
if($newvoucher['vouchersyncport'] == "443") $url = "https://{$newvoucher['vouchersyncdbip']}"; else $url = "http://{$newvoucher['vouchersyncdbip']}";
I would like to fix this, but I'm not a PHP coder... :(
Suggestion: Ability to select protocol on webGUI beside custom port.
Files
Actions