summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_nat_out_edit.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php
index 1c8f40b..09fa299 100755
--- a/usr/local/www/firewall_nat_out_edit.php
+++ b/usr/local/www/firewall_nat_out_edit.php
@@ -174,7 +174,13 @@ if ($_POST) {
$natent['descr'] = $_POST['descr'];
$natent['target'] = $_POST['target'];
$natent['interface'] = $_POST['interface'];
- $natent['nonat'] = $_POST['nonat'];
+
+ /* if user has selected not nat, set it here */
+ if(isset($_POST['nonat'])) {
+ $natent['nonat'] = true;
+ } else {
+ $natent['nonat'] = false;
+ }
if ($ext == "any")
$natent['destination']['any'] = true;
OpenPOWER on IntegriCloud