fix amt notls always using tls, fix tls undefined, amt timeout shortened, commander typo fix

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-05-05 01:34:50 +01:00
parent d9f2f869a2
commit fa7f194ed1
5 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -36,6 +36,7 @@ var CreateAmtRedirect = function (module, authCookie) {
obj.port = port;
obj.user = user;
obj.pass = pass;
obj.tls = tls;
obj.connectstate = 0;
obj.inDataCount = 0;
var url = window.location.protocol.replace('http', 'ws') + '//' + window.location.host + window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/')) + '/webrelay.ashx?p=2&host=' + host + '&port=' + port + '&tls=' + tls + ((user == '*') ? '&serverauth=1' : '') + ((typeof pass === 'undefined') ? ('&serverauth=1&user=' + user) : ''); // The 'p=2' indicates to the relay that this is a REDIRECTION session