diff options
author | pierrepomes <pierre.pomes@interface-tech.com> | 2010-02-23 23:11:56 -0500 |
---|---|---|
committer | pierrepomes <pierre.pomes@interface-tech.com> | 2010-02-23 23:11:56 -0500 |
commit | 744187e8b633df9c80b9bcec4834958e754c50e6 (patch) | |
tree | ebb64810641f0fa4e624cd66975c74ef4bc4534d /usr/local/www | |
parent | dae5589e81d5ca01841544e041d384f5b6c0df6d (diff) | |
download | pfsense-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.php | 4 |
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) { |