diff options
| -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); |
