summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/daemon-rpc.ts2
-rw-r--r--gui/src/main/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts
index 2c467a0d05..91f9e8771c 100644
--- a/gui/src/main/daemon-rpc.ts
+++ b/gui/src/main/daemon-rpc.ts
@@ -250,7 +250,7 @@ const tunnelStateSchema = oneOf(
}),
),
}),
- location: locationSchema,
+ location: maybe(locationSchema),
}),
}),
object({
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 9013c7c5cd..bdc1c4f5ec 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -729,7 +729,7 @@ class ApplicationMain {
if (tunnelState.state === 'connected' || tunnelState.state === 'connecting') {
// Location was broadcasted with the tunnel state, but it doesn't contain the relay out IP
// address, so it will have to be fetched afterwards
- if (tunnelState.details) {
+ if (tunnelState.details && tunnelState.details.location) {
this.setLocation(tunnelState.details.location);
}
} else if (tunnelState.state === 'disconnected') {