mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-05 19:31:56 +00:00
fix: incorrect addition of https prefix for peers
This commit is contained in:
1 parent
ad7b7b9513
commit
41d5dbc0da
1 file changed
+4
-1
@@ -61,7 +61,10 @@ class CLink extends BaseLink {
|
||||
|
||||
connect () {
|
||||
let address = this.config.address;
|
||||
if ( ! address.startsWith('https://') ) {
|
||||
if ( ! (
|
||||
address.startsWith('https://') ||
|
||||
address.startsWith('http://')
|
||||
) ) {
|
||||
address = `https://${address}`;
|
||||
}
|
||||
const socket = this.modules.sioclient(address, {
|
||||
|
||||
Reference in new issue
Block a user