summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-17 19:33:52 +0000
committerErmal <eri@pfsense.org>2010-06-17 19:33:52 +0000
commit34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b (patch)
tree03177691bdce464e4e6ff23b4395afdef961461a /usr/local/www/services_captiveportal.php
parent822b687b162a5022d9d687cf98867149e1af126f (diff)
downloadpfsense-34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b.zip
pfsense-34e9ca600219a4ba7470ffcc28cc1467ba9a7d3b.tar.gz
Show even VIP's in the list. This is copied from nat code and probably should be generalized.
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index c47eba9..0c60c7c 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -544,6 +544,21 @@ value="<?=htmlspecialchars($pconfig['radiuskey2']);?>"></td>
echo "<option value='{$ifdesc}' {$selected}>{$ifdescr} - {$ipaddr}</option>\n";
}
}
+ if (is_array($config['virtualip']['vip'])) {
+ foreach ($config['virtualip']['vip'] as $sn) {
+ if ($sn['mode'] == "proxyarp" && $sn['type'] == "network") {
+ $start = ip2long32(gen_subnet($sn['subnet'], $sn['subnet_bits']));
+ $end = ip2long32(gen_subnet_max($sn['subnet'], $sn['subnet_bits']));
+ $len = $end - $start;
+
+ for ($i = 0; $i <= $len; $i++) {
+ $snip = long2ip32($start+$i);
+ echo "<option value='{$snip}' {$selected}>" . htmlspecialchars("{$sn['descr']} - {$snip}") . "></option>\n";
+ }
+ } else
+ echo "<option value='{$sn['subnet']}' {$selected}>" . htmlspecialchars("{$sn['descr']} - {$sn['subnet']}") . "></option>\n";
+ }
+ }
?>
</select><br/>
Choose the ip to use for calling station attribute.
OpenPOWER on IntegriCloud