mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix "use system default" setting for reflection on NAT 1:1 rule edit page and remove reference to nonexistent "externalmask" field.
This commit is contained in:
parent
d3690bcb51
commit
aecbc33ef1
@ -172,7 +172,6 @@ if ($_POST) {
|
||||
|
||||
$natent['disabled'] = isset($_POST['disabled']) ? true:false;
|
||||
$natent['external'] = $_POST['external'];
|
||||
$natent['externalmask'] = $_POST['externalmask'];
|
||||
$natent['descr'] = $_POST['descr'];
|
||||
$natent['interface'] = $_POST['interface'];
|
||||
|
||||
@ -184,6 +183,8 @@ if ($_POST) {
|
||||
|
||||
if ($_POST['natreflection'] == "enable" || $_POST['natreflection'] == "disable")
|
||||
$natent['natreflection'] = $_POST['natreflection'];
|
||||
else
|
||||
unset($natent['natreflection']);
|
||||
|
||||
if (isset($id) && $a_1to1[$id])
|
||||
$a_1to1[$id] = $natent;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user