From b2f9bfa174fbf3402b7c0262bd7aa2faf63a469e Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Fri, 14 Oct 2022 13:46:45 +0200 Subject: [PATCH] Connection on the current protocol used --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c54efe6..8a2342c 100755 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -37,7 +37,7 @@ import ArchivedDownloads from "./Archived"; const drawerWidth: number = 240; const socket = io( - `http://${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}` + `${window.location.protocol}//${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}` ) interface AppBarProps extends MuiAppBarProps {