summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-30 15:31:18 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-30 15:31:18 +0000
commit9e21d3187f910ee06d242fc77f3318445a240244 (patch)
tree327cdc5315f2fb48649036a70e84f0a4c7ebc46a /usr
parent82458abb20796f99dddc0bf70831871c47ddccca (diff)
downloadpfsense-9e21d3187f910ee06d242fc77f3318445a240244.zip
pfsense-9e21d3187f910ee06d242fc77f3318445a240244.tar.gz
Introduce a 'None' option for the gateways select box.
Apart fixing aestetic when there is no gateway configured for the interface it allows you to setup gateways and not select them on the interface configuration i.e. on Lan or similar type configured ones. Reported-by: sullrich@
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index f23cf30..71c1a23 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -349,7 +349,7 @@ n already exists.";
if (($_POST['alias-subnet'] && !is_numeric($_POST['alias-subnet']))) {
$input_errors[] = "A valid alias subnet bit count must be specified.";
}
- if ($_POST['gateway']) {
+ if ($_POST['gateway'] != "none") {
$match = false;
foreach($a_gateways as $gateway) {
if(in_array($_POST['gateway'], $gateway)) {
@@ -478,7 +478,8 @@ n already exists.";
if ($_POST['type'] == "static") {
$wancfg['ipaddr'] = $_POST['ipaddr'];
$wancfg['subnet'] = $_POST['subnet'];
- $wancfg['gateway'] = $_POST['gateway'];
+ if ($_POST['gateway'] != "none")
+ $wancfg['gateway'] = $_POST['gateway'];
if (isset($wancfg['ispointtopoint']))
$wancfg['pointtopoint'] = $_POST['pointtopoint'];
} else if ($_POST['type'] == "dhcp") {
@@ -908,6 +909,7 @@ function openwindow(url) {
<tr>
<td width="22%" valign="top" class="vncellreq">Gateway</td>
<td width="78%" class="vtable"><select name="gateway" class="formselect" id="gateway">
+ <option value="none" selected>None</option>
<?php
if(count($a_gateways) > 0) {
foreach ($a_gateways as $gateway) {
OpenPOWER on IntegriCloud