Révision 36de334e
Ajouté par Renato Botelho il y a presque 10 ans
etc/inc/captiveportal.inc | ||
---|---|---|
545 | 545 |
if (!empty($config['captiveportal'][$cpzone]['listenporthttp'])) |
546 | 546 |
$listenporthttp = $config['captiveportal'][$cpzone]['listenporthttp']; |
547 | 547 |
else |
548 |
$listenporthttp = 8000 + $config['captiveportal'][$cpzone]['zoneid'];
|
|
548 |
$listenporthttp = 8000 + $cpzoneid;
|
|
549 | 549 |
|
550 | 550 |
if (isset($config['captiveportal'][$cpzone]['httpslogin'])) { |
551 | 551 |
if (!empty($config['captiveportal'][$cpzone]['listenporthttps'])) |
552 | 552 |
$listenporthttps = $config['captiveportal'][$cpzone]['listenporthttps']; |
553 | 553 |
else |
554 |
$listenporthttps = 8001 + $config['captiveportal'][$cpzone]['zoneid'];
|
|
554 |
$listenporthttps = 8001 + $cpzoneid;
|
|
555 | 555 |
if (!isset($config['captiveportal'][$cpzone]['nohttpsforwards'])) { |
556 | 556 |
$cprules .= "add 65531 fwd 127.0.0.1,{$listenporthttps} tcp from any to any dst-port 443 in\n"; |
557 | 557 |
} |
Formats disponibles : Unified diff
Use global cpzoneid variable