diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-05-18 22:47:21 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-05-19 06:05:44 +0200 |
| commit | 25f870293bae983d164f04178cf57a852e2d0416 (patch) | |
| tree | 5eeff9a7110c466f828e5b694098bd6f3c7873c6 | |
| parent | 5d81ffed027675e143488cc9757f4303378778f7 (diff) | |
| download | mullvadvpn-25f870293bae983d164f04178cf57a852e2d0416.tar.xz mullvadvpn-25f870293bae983d164f04178cf57a852e2d0416.zip | |
Get IP
| -rw-r--r-- | app/lib/backend.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 38adc6cf14..0aa8ccf37e 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -196,10 +196,10 @@ export default class Backend extends EventEmitter { sync() { log.info('Syncing with the backend...'); - this._ipc.send('get_connection') - .then( connectionInfo => { - log.info('Got connection info', connectionInfo); - this.emit(Backend.EventType.updatedIp, connectionInfo.ip); + this._ipc.send('get_ip') + .then( ip => { + log.info('Got ip', ip); + this.emit(Backend.EventType.updatedIp, ip); }) .catch(e => { log.info('Failed syncing with the backend', e); |
