summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-30 20:22:58 +0000
committerErmal <eri@pfsense.org>2010-04-30 20:22:58 +0000
commit7bed82221ae8c4d9beffc05d35952d212ea7001e (patch)
treeab94114b75ce8f66bd78e1f82165ba0e914914d5 /usr/local/www/system_gateways_edit.php
parent0307f35126ee87651f213624c4d6c6e302863e52 (diff)
downloadpfsense-7bed82221ae8c4d9beffc05d35952d212ea7001e.zip
pfsense-7bed82221ae8c4d9beffc05d35952d212ea7001e.tar.gz
Ticket #506. Correctly save dynamic gateways extra parameters.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 60b8700..689397b 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -167,10 +167,15 @@ if ($_POST) {
/* rebuild the array with the manual entries only */
$gateway = array();
- $gateway['interface'] = $_POST['interface'];
+ if ($_POST['attribute'] == "system") {
+ $gateway['interface'] = $pconfig['friendlyiface'];
+ $gateway['gateway'] = "dynamic";
+ } else {
+ $gateway['interface'] = $_POST['interface'];
+ $gateway['gateway'] = $_POST['gateway'];
+ }
$gateway['name'] = $_POST['name'];
$gateway['weight'] = $_POST['weight'];
- $gateway['gateway'] = $_POST['gateway'];
$gateway['descr'] = $_POST['descr'];
if(is_ipaddr($_POST['monitor'])) {
$gateway['monitor'] = $_POST['monitor'];
OpenPOWER on IntegriCloud