summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/daemon-rpc.ts2
-rw-r--r--gui/src/main/index.ts2
-rw-r--r--gui/src/shared/daemon-rpc-types.ts2
3 files changed, 3 insertions, 3 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') {
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts
index ec52d0ad5f..5d2c77d223 100644
--- a/gui/src/shared/daemon-rpc-types.ts
+++ b/gui/src/shared/daemon-rpc-types.ts
@@ -77,7 +77,7 @@ export type DaemonEvent =
export interface ITunnelStateRelayInfo {
endpoint: ITunnelEndpoint;
- location: ILocation;
+ location?: ILocation;
}
export type TunnelState =