summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-17 10:02:23 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-17 10:02:23 +0000
commitc3b347f199b3854e161e533a9191fdf2c7aaae19 (patch)
treeb5c5d666d524c268adcf5214963f32a448da9bfb /usr
parente93949e50d180ce23eb49759cb24c2725457b6b3 (diff)
downloadpfsense-c3b347f199b3854e161e533a9191fdf2c7aaae19.zip
pfsense-c3b347f199b3854e161e533a9191fdf2c7aaae19.tar.gz
Allow duplication of system gateways for easier adding and less typing.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_gateways_edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 0bd623a..bc98a08 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -56,7 +56,9 @@ if (isset($id) && $a_gateways[$id]) {
$pconfig['defaultgw'] = $a_gateways[$id]['defaultgw'];
$pconfig['monitor'] = $a_gateways[$id]['monitor'];
$pconfig['descr'] = $a_gateways[$id]['descr'];
- $pconfig['attribute'] = $a_gateways[$id]['attribute'];
+ if (!isset($_GET['dup'])) {
+ $pconfig['attribute'] = $a_gateways[$id]['attribute'];
+ }
}
if (isset($_GET['dup']))
OpenPOWER on IntegriCloud