mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
peer input protocol fix, resetting info and p2p expire times on new peer select
This commit is contained in:
parent
28a2ffdaca
commit
0e6ccc4595
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue