From 0e6ccc4595753259a9492d940a5e8abb17d8ffe0 Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 6 May 2023 19:32:56 +0200 Subject: [PATCH] peer input protocol fix, resetting info and p2p expire times on new peer select --- stable.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stable.user.js b/stable.user.js index c4edc85..e5e575f 100755 --- a/stable.user.js +++ b/stable.user.js @@ -46,7 +46,7 @@ // : Script header {{{ // ==UserScript== // @name Moodle/Elearning/KMOOC test help -// @version 2.1.5.0 +// @version 2.1.5.1 // @description Online Moodle/Elearning/KMOOC test help // @author MrFry // @match https://elearning.uni-obuda.hu/* @@ -1904,7 +1904,7 @@ return } - let port = hostUrl.includes('https') ? 433 : 80 + let port = hostUrl.includes('http:') ? 80 : 432 if (hostUrl.split(':').length > 1) { port = hostUrl.split(':')[1] port = port.replace(/\//g, '') @@ -1926,6 +1926,8 @@ elem.innerText = texts.connecting + getShortServerURL(serverAdress) }) debugLog({ serverAdress: serverAdress, apiAdress: apiAdress }) + infoExpireTime = 0 + p2pInfoExpireTime = 0 ConnectToServer() }