Better deafult address for http connection
This commit is contained in:
1 parent
c6540ddb20
commit
4ab0de3016
1 file changed
+5
-1
@@ -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