mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
fix: incorrect addition of https prefix for peers
This commit is contained in:
@@ -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