Skip to content

Commit

Permalink
ensure right protocol is used for http reachablity check (#1951)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer authored Nov 20, 2023
1 parent dd3821e commit 90cd97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/modules/Stream/Auth/ConnectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default function ConnectForm(props: ConnectFormProps): JSX.Element {

async function reachabilityCheck(url: string) {
setReachablityState('loading')
const res = await httpReachabilityCheck(`http://${stripScheme(url)}`)
const res = await httpReachabilityCheck(`//${stripScheme(url)}`)

// Being reachable by http is not a requirement (you could have some really odd network setup)
// But if it doesn't work though, it is likely the connection will time out which can take a while
Expand Down

0 comments on commit 90cd97e

Please sign in to comment.