Better deafult address for http connection
This commit is contained in:
@@ -20,7 +20,11 @@ export const HTTP = (): JSX.Element => {
|
|||||||
tls: boolean;
|
tls: boolean;
|
||||||
}>({
|
}>({
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
ip: "meshtastic.local",
|
ip: ["client.meshtasti.org", "localhost"].includes(
|
||||||
|
window.location.hostname
|
||||||
|
)
|
||||||
|
? "meshtastic.local"
|
||||||
|
: window.location.hostname,
|
||||||
tls: location.protocol === "https:"
|
tls: location.protocol === "https:"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user