From 661f92bbcfbe616591982608dda1fd103856bdaa Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Wed, 2 Sep 2020 15:57:28 +0200 Subject: [PATCH] Fix infinity loop caused by WebSockets --- src/webSockets/WebSockets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webSockets/WebSockets.js b/src/webSockets/WebSockets.js index ec33a49..07502ce 100644 --- a/src/webSockets/WebSockets.js +++ b/src/webSockets/WebSockets.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/) + * Copyright (C) 2020 CZ.NIC z.s.p.o. (http://www.nic.cz/) * * This is free software, licensed under the GNU General Public License v3. * See /LICENSE for more information. @@ -12,7 +12,7 @@ import { ForisURLs } from "../utils/forisUrls"; const PROTOCOL = window.location.protocol === "http:" ? "ws" : "wss"; const URL = process.env.LIGHTTPD - ? `${PROTOCOL}://${window.location.hostname}/foris-ws` + ? `${PROTOCOL}://${window.location.host}/foris-ws` : `${PROTOCOL}://${window.location.hostname}:${9081}`; const WAITING_FOR_CONNECTION_TIMEOUT = 500;