diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-12-12 13:21:25 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-19 10:32:24 +0100 |
| commit | 4353ec7bd52585c67324c0fabcd76473d4150600 (patch) | |
| tree | 005ad8ddef746a94aa7409e00d4497848f788892 | |
| parent | 07fda0947a80cb122431284d12e24e6f806b8280 (diff) | |
| download | mullvadvpn-4353ec7bd52585c67324c0fabcd76473d4150600.tar.xz mullvadvpn-4353ec7bd52585c67324c0fabcd76473d4150600.zip | |
Fetch relay locations on sync
| -rw-r--r-- | app/lib/backend.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index b76b3b3749..6e79188043 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -135,6 +135,18 @@ export class Backend { await this._ensureAuthenticated(); try { + const locations = await this._ipc.getRelayLocations(); + + log.info('Got relay locations'); + + this._store.dispatch( + settingsActions.updateRelayLocations(locations) + ); + } catch (e) { + log.error('Cannot fetch relay locations', e); + } + + try { const publicIp = await this._ipc.getPublicIp(); log.info('Got public IP: ', publicIp); |
