Variable cpi_query is empty at voucher_form() in theme_voucher.sh

I'm trying to implement a QR code system to login to the portal with OpenNDS as described in theme_voucher.sh; but the variable cpi_query when called returns an empty string. i'm new at this so please help me

@bluewavenet will probably know, but have you RTFM ?

Bare in mind that this is not officially supported by the OpenNDS project, rather, it has been written as a guideline by users in the community.

This is the RFC8910-cpi query string and is generally not used as ALL client devices, with no exception, default to using the de-facto client driven CPD method. The cpi_query defaults to containing the gatewayname variable almost always.

The Theme_voucher script may be using cpi_query for something else, or it has become outdated, as it is not maintained by the project.

You might be better off opening an issue on Github with the hope that someone in the community will be willing and able to help:
OpenNDS Issues

FYI:

  • CPD - Captive Portal Detection; a function of the client device operating system (aka "canary test"), the universally accepted method for "popping up" the captive portal login page.
  • CPI - Captive Portal Information; the, as yet very uncommon, RFC8908/RFC8910 router driven method of flagging the presence of a captive portal to client devices.
1 Like