mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-22 11:53:02 +00:00
14 lines
275 B
Ucode
14 lines
275 B
Ucode
{%
|
|
|
|
'use strict';
|
|
|
|
let uci = require('uci').cursor();
|
|
let config = uci.get_all('uspot');
|
|
|
|
global.handle_request = function(env) {
|
|
if (env.REMOTE_ADDR && +config.def_captive.debug)
|
|
warn('uspot: ' + env.REMOTE_ADDR + ' - CPD redirect\n');
|
|
include('cpd.uc', { env });
|
|
};
|
|
%}
|