fix bug with incorrect tcp hostnames

This commit is contained in:
ading2210 2024-09-01 21:38:03 -04:00
parent 88f2249e4e
commit 1a53a3c8f7
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,6 @@
/* INSERT
var ?opts ?= ?undefined;
*/
var parts=addr.split("/");
url = url + parts[0] + ":" + port;
var parts = addr.split("/");
if (!url.endsWith("/")) url += "/";
url += parts[0] + ":" + port;