Browse Source

Better deafult address for http connection

pull/66/head
Sacha Weatherstone 4 years ago
parent
commit
4ab0de3016
  1. 6
      src/components/PageComponents/Connect/HTTP.tsx

6
src/components/PageComponents/Connect/HTTP.tsx

@ -20,7 +20,11 @@ export const HTTP = (): JSX.Element => {
tls: boolean;
}>({
defaultValues: {
ip: "meshtastic.local",
ip: ["client.meshtasti.org", "localhost"].includes(
window.location.hostname
)
? "meshtastic.local"
: window.location.hostname,
tls: location.protocol === "https:"
}
});

Loading…
Cancel
Save