diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-04 22:38:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-04 22:38:12 +0000 |
commit | 120daf8366ad64f4b48aead947e1f5bc14b09e77 (patch) | |
tree | 7be901f4a155893c5c47e9a50fdcc7d2d7ca7ec9 | |
parent | 3280df11c00b4011e829b3307def40a06508f924 (diff) | |
download | pfsense-120daf8366ad64f4b48aead947e1f5bc14b09e77.zip pfsense-120daf8366ad64f4b48aead947e1f5bc14b09e77.tar.gz |
If the destination port is an alias, then force the local port as the same alias. We will need to circle back in filter.inc to detect this situation and omit the local port from the rule.
-rw-r--r-- | usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js index c215dd6..04f0ba8 100644 --- a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js +++ b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js @@ -34,29 +34,29 @@ function check_for_aliases() { document.iform.localbeginport_cust.disabled = 0; for(i=0; i<customarray.length; i++) { if(document.iform.beginport_cust.value == customarray[i]) { - document.iform.endport_cust.value = ""; - document.iform.localbeginport_cust.value = ""; + document.iform.endport_cust.value = customarray[i]; + document.iform.localbeginport_cust.value = customarray[i]; document.iform.endport_cust.disabled = 1; document.iform.localbeginport.disabled = 1; document.iform.localbeginport_cust.disabled = 1; } if(document.iform.beginport.value == customarray[i]) { - document.iform.endport_cust.value = ""; - document.iform.localbeginport_cust.value = ""; + document.iform.endport_cust.value = customarray[i]; + document.iform.localbeginport_cust.value = customarray[i]; document.iform.endport_cust.disabled = 1; document.iform.localbeginport.disabled = 1; document.iform.localbeginport_cust.disabled = 1; } if(document.iform.endport_cust.value == customarray[i]) { - document.iform.endport_cust.value = ""; - document.iform.localbeginport_cust.value = ""; + document.iform.endport_cust.value = customarray[i]; + document.iform.localbeginport_cust.value = customarray[i]; document.iform.endport_cust.disabled = 1; document.iform.localbeginport.disabled = 1; document.iform.localbeginport_cust.disabled = 1; } if(document.iform.endport.value == customarray[i]) { - document.iform.endport_cust.value = ""; - document.iform.localbeginport_cust.value = ""; + document.iform.endport_cust.value = customarray[i]; + document.iform.localbeginport_cust.value = customarray[i]; document.iform.endport_cust.disabled = 1; document.iform.localbeginport.disabled = 1; document.iform.localbeginport_cust.disabled = 1; |