mirror of
https://github.com/meshtastic/web.git
synced 2026-01-26 16:29:24 -05:00
Better deafult address for http connection
This commit is contained in:
@@ -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:"
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user