Better deafult address for http connection

This commit is contained in:
Sacha Weatherstone
2022-12-28 14:21:55 +11:00
parent c6540ddb20
commit 4ab0de3016

View File

@@ -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:"
}
});