Révision 4320083f
Ajouté par Renato Botelho il y a presque 10 ans
etc/inc/captiveportal.inc | ||
---|---|---|
1675 | 1675 |
$cpcfg = $config['captiveportal'][$cpzone]; |
1676 | 1676 |
|
1677 | 1677 |
if (isset($cpcfg['httpslogin'])) { |
1678 |
$listenporthttps = $cpcfg['listenporthttps'] ? $cpcfg['listenporthttps'] : ($cpcfg['zoneid'] + 1); |
|
1678 |
$listenporthttps = $cpcfg['listenporthttps'] ? $cpcfg['listenporthttps'] : ($cpcfg['zoneid'] + 8001);
|
|
1679 | 1679 |
$ourhostname = $cpcfg['httpsname']; |
1680 | 1680 |
|
1681 | 1681 |
if ($listenporthttps != 443) |
1682 | 1682 |
$ourhostname .= ":" . $listenporthttps; |
1683 | 1683 |
} else { |
1684 |
$listenporthttp = $cpcfg['listenporthttp'] ? $cpcfg['listenporthttp'] : $cpcfg['zoneid'];
|
|
1684 |
$listenporthttp = $cpcfg['listenporthttp'] ? $cpcfg['listenporthttp'] : ($cpcfg['zoneid'] + 8000);
|
|
1685 | 1685 |
$ifip = portal_ip_from_client_ip($cliip); |
1686 | 1686 |
if (!$ifip) |
1687 | 1687 |
$ourhostname = "{$config['system']['hostname']}.{$config['system']['domain']}"; |
Formats disponibles : Unified diff
Fix http and https port for cpzone