Template
Ship AIVPN smart protocol picker and bump to v3.0.0.
Heuristic selection (stealth/balanced/speed) for invites, guest create, and user connections. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -685,6 +685,11 @@
|
||||
});
|
||||
|
||||
if (count > 0) {
|
||||
const aivpnOpt = document.createElement('option');
|
||||
aivpnOpt.value = 'aivpn';
|
||||
aivpnOpt.textContent = _('aivpn_protocol_option') || 'AIVPN (auto)';
|
||||
select.insertBefore(aivpnOpt, select.firstChild);
|
||||
count++;
|
||||
if (group) group.style.display = '';
|
||||
} else {
|
||||
const opt = document.createElement('option');
|
||||
@@ -766,6 +771,13 @@
|
||||
});
|
||||
|
||||
document.getElementById('ucProtocol').addEventListener('change', (e) => {
|
||||
if (e.target.value === 'aivpn') {
|
||||
const mode = document.getElementById('ucMode');
|
||||
if (mode && mode.value === 'existing') {
|
||||
mode.value = 'new';
|
||||
toggleUCMode();
|
||||
}
|
||||
}
|
||||
if (document.getElementById('ucMode').value === 'existing') {
|
||||
fetchExistingClients();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user