summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorpierrepomes <pierre.pomes@interface-tech.com>2010-02-23 23:11:56 -0500
committerpierrepomes <pierre.pomes@interface-tech.com>2010-02-23 23:11:56 -0500
commit744187e8b633df9c80b9bcec4834958e754c50e6 (patch)
treeebb64810641f0fa4e624cd66975c74ef4bc4534d /usr/local/www
parentdae5589e81d5ca01841544e041d384f5b6c0df6d (diff)
downloadpfsense-744187e8b633df9c80b9bcec4834958e754c50e6.zip
pfsense-744187e8b633df9c80b9bcec4834958e754c50e6.tar.gz
When editing a P2: reset netmask to 24 only when it is not specified, in case of a new P2. Ticket #352
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/vpn_ipsec_phase2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php
index f2899e6..a1eb068 100644
--- a/usr/local/www/vpn_ipsec_phase2.php
+++ b/usr/local/www/vpn_ipsec_phase2.php
@@ -223,7 +223,7 @@ function change_mode() {
function typesel_change_local(bits) {
- if (!bits)
+ if (typeof(bits)=="undefined")
bits = 24;
switch (document.iform.localid_type.selectedIndex) {
@@ -258,7 +258,7 @@ function typesel_change_remote(bits) {
function typesel_change_remote(bits) {
- if (!bits)
+ if (typeof(bits)=="undefined")
bits = 24;
switch (document.iform.remoteid_type.selectedIndex) {
OpenPOWER on IntegriCloud