summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-07-01 17:26:02 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-07-01 17:26:02 -0300
commitd77a96468548f88c445ee27ccc5dfadbc884e74c (patch)
tree2b14fb1f8b2da359d1e765139fbd643de8d8cb30 /gui/src/main
parent12c090a7699dbf9971503e374ba0a826cbe8371d (diff)
parent8c38691e32fb1788f391430b684905a268d66e2f (diff)
downloadmullvadvpn-d77a96468548f88c445ee27ccc5dfadbc884e74c.tar.xz
mullvadvpn-d77a96468548f88c445ee27ccc5dfadbc884e74c.zip
Merge branch 'fix-support-for-custom-relays'
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') {