changeset 2486:81a0f6e6256c

Merge.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Mar 2023 13:57:25 +0200
parents f059b572e612 (current diff) 71e565a46274 (diff)
children c7d0e947cac8
files www/search.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/www/search.js	Tue Feb 14 09:37:52 2023 +0200
+++ b/www/search.js	Wed Mar 08 13:57:25 2023 +0200
@@ -4,7 +4,6 @@
 // (C) Copyright 2017-2019 Tecnic Software productions (TNSP)
 //
 
-var mapServer = "wss://tnsp.org:444";
 var fieldPattern, chosenPattern = 0;
 var msgLog, mapWS, tmpWS, locWS, mapList = [];
 var mapItemToggles = new Array();
@@ -184,7 +183,8 @@
 {
   if ("WebSocket" in window)
   {
-    var tmpWS = new WebSocket(mapServer);
+    var mapPort = "5222";
+    var tmpWS = new WebSocket("wss://tnsp.org:"+ mapPort);
     if (!tmpWS)
     {
       mapResult("WebSocket error: Could not create WebSocket.");
@@ -195,7 +195,7 @@
     {
       mapResult("<b>WebSocket error occured!</b>"+
       "<p>If this problem persists for more than few hours AND this search HAS worked for you before, "+
-      "you should check if your Internet provider and firewall allow connections to TCP port 444.</p>"
+      "you should check if your Internet provider and firewall allow connections to TCP port "+ mapPort +".</p>"
       );
       console.error("WebSocket error occured: ", mev);
     };