summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-10-06 16:26:46 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-10-06 16:27:11 -0400
commit9f3f42767e0c4c7c160f95d149f64ac9bd711061 (patch)
tree8f30e364f452c9e691164b67c7dc6ef8a390477d /src/usr/local/www/interfaces.php
parent3896a57e80a7a253b7b3f75668e39662a52c9df1 (diff)
downloadpfsense-9f3f42767e0c4c7c160f95d149f64ac9bd711061.zip
pfsense-9f3f42767e0c4c7c160f95d149f64ac9bd711061.tar.gz
Fixed #5269
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r--src/usr/local/www/interfaces.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 9130091..b263271 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -1735,7 +1735,7 @@ function build_mediaopts_list() {
}
function build_gateway_list() {
- global $a_gateways;
+ global $a_gateways, $if;
$list = array("none" => "None");
foreach ($a_gateways as $gateway) {
@@ -1747,6 +1747,19 @@ function build_gateway_list() {
return($list);
}
+function build_gatewayv6_list() {
+ global $a_gateways, $if;
+
+ $list = array("none" => "None");
+ foreach ($a_gateways as $gateway) {
+ if (($gateway['interface'] == $if) && (is_ipaddrv6($gateway['gateway']))) {
+ $list[$gateway['name']] = $gateway['name'] . " - " . $gateway['gateway'];
+ }
+ }
+
+ return($list);
+}
+
include("head.inc");
if ($input_errors)
@@ -1944,8 +1957,8 @@ $group = new Form_Group('IPv6 Upstream gateway');
$group->add(new Form_Select(
'gatewayv6',
'IPv4 Upstream Gateway',
- $pconfig['gateway'],
- build_gateway_list()
+ $pconfig['gatewayv6'],
+ build_gatewayv6_list()
));
$group->add(new Form_Button(
OpenPOWER on IntegriCloud