Revision d6908784
Added by Chris Buechler about 10 years ago
usr/local/www/vpn_ipsec_phase1.php | ||
---|---|---|
445 | 445 |
function myidsel_change() { |
446 | 446 |
index = document.iform.myid_type.selectedIndex; |
447 | 447 |
value = document.iform.myid_type.options[index].value; |
448 |
if (value == 'myaddress') { |
|
449 |
document.getElementById('myid_data').style.visibility = 'hidden'; |
|
450 |
} else if (value == 'asn1dn') { |
|
451 |
document.getElementById('myid_data').style.visibility = 'hidden'; |
|
452 |
} else { |
|
453 |
document.getElementById('myid_data').style.visibility = 'visible'; |
|
454 |
} |
|
448 |
if (value == 'myaddress') |
|
449 |
document.getElementById('myid_data').style.visibility = 'hidden'; |
|
450 |
else |
|
451 |
document.getElementById('myid_data').style.visibility = 'visible'; |
|
455 | 452 |
} |
456 | 453 |
|
457 | 454 |
function iketype_change() { |
... | ... | |
473 | 470 |
function peeridsel_change() { |
474 | 471 |
index = document.iform.peerid_type.selectedIndex; |
475 | 472 |
value = document.iform.peerid_type.options[index].value; |
476 |
if (value == 'peeraddress') { |
|
477 |
document.getElementById('peerid_data').style.visibility = 'hidden'; |
|
478 |
} else if (value == 'asn1dn') { |
|
479 |
document.getElementById('peerid_data').style.visibility = 'hidden'; |
|
480 |
} else { |
|
481 |
document.getElementById('peerid_data').style.visibility = 'visible'; |
|
482 |
} |
|
473 |
if (value == 'peeraddress') |
|
474 |
document.getElementById('peerid_data').style.visibility = 'hidden'; |
|
475 |
else |
|
476 |
document.getElementById('peerid_data').style.visibility = 'visible'; |
|
483 | 477 |
} |
484 | 478 |
|
485 | 479 |
function methodsel_change() { |
Also available in: Unified diff
Contrary to some reports this is actually usable in some cases, just not
mandatory. Revert "myid_data and peerid_data fields are not relevant with asn1dn."
This reverts commit b8754cc85db7e92322f605bbb4b2f90bde90bb7f.