From fd9e327c85544fc8c30fe77fb99746591d494f5a Mon Sep 17 00:00:00 2001 From: sgtwilko Date: Fri, 30 Aug 2024 01:01:44 +0100 Subject: [PATCH] Use window.location.host so that websites run on non-standard ports include the port --- src/components/PageComponents/Connect/HTTP.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageComponents/Connect/HTTP.tsx b/src/components/PageComponents/Connect/HTTP.tsx index 1eb7ca5c..ae049be2 100644 --- a/src/components/PageComponents/Connect/HTTP.tsx +++ b/src/components/PageComponents/Connect/HTTP.tsx @@ -23,7 +23,7 @@ export const HTTP = ({ closeDialog }: TabElementProps): JSX.Element => { window.location.hostname, ) ? "meshtastic.local" - : window.location.hostname, + : window.location.host, tls: location.protocol === "https:", }, });