summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-05-18 22:47:21 +0200
committerErik Larkö <erik@mullvad.net>2017-05-19 06:05:44 +0200
commit25f870293bae983d164f04178cf57a852e2d0416 (patch)
tree5eeff9a7110c466f828e5b694098bd6f3c7873c6
parent5d81ffed027675e143488cc9757f4303378778f7 (diff)
downloadmullvadvpn-25f870293bae983d164f04178cf57a852e2d0416.tar.xz
mullvadvpn-25f870293bae983d164f04178cf57a852e2d0416.zip
Get IP
-rw-r--r--app/lib/backend.js8
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);