Voucher Sync Https Port

  • I have two locations that users frequently travel back and forth between. I have vouchers setup and I would like to generate vouchers on one system and when the user goes to the other location they can use the same voucher and it work. However, I can't get the sync to work over https if the webconfigurator port is changed from 443.

    The error recieved is:
    The following input errors were detected:
    An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with http://[ipaddress]:10443 - Code 2: Invalid return payload: enable debugging to examine incoming payload

    You can see that is changes to http instead of https if I use any other port than 443.

    I opened up /etc/inc/voucher.inc and modified the if statement in 3 places.

    	if($port == "10443") 
    		$url = "https://{$syncip}";
    		$url = "https://{$syncip}";

    However this doesn't make a difference. I can't seem to figure out where it is deciding to use https or http.

    Anybody know how to fix this?



  • Many moons later this issue came up again.

    Edit /usr/local/www/services_captiveportal_vouchers.php

    Line 234:

    if($config['voucher']['vouchersyncport'] == "443") 

    Change to:

    if($config['voucher']['vouchersyncport'] == "10443") 

    Hope this helps someone else.

Log in to reply