forked from snxraven/LinkUp-P2P-Chat
Ignoring 'updatePortInUrl' if port is 443 (SSL connection)
This commit is contained in:
parent
3e9a2101d5
commit
d4dc1b299d
1
app.js
1
app.js
@ -850,6 +850,7 @@ function writeConfigToFile(filePath) {
|
||||
function updatePortInUrl(url) {
|
||||
if (!url) return url;
|
||||
const urlObject = new URL(url);
|
||||
if(urlObject.port == 443) return urlObject.toString();
|
||||
urlObject.port = servePort;
|
||||
return urlObject.toString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user