diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-09-12 13:33:46 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-09-12 13:46:04 +0200 |
| commit | 4ed0102b38aa29bee9b0a876ec48c48d715f644e (patch) | |
| tree | 4c3334ed98f97b2c83c9b49f448c790810a5f835 /app/containers | |
| parent | d541f4ee98182faa6c4e52727c948612b4d7ad53 (diff) | |
| download | mullvadvpn-4ed0102b38aa29bee9b0a876ec48c48d715f644e.tar.xz mullvadvpn-4ed0102b38aa29bee9b0a876ec48c48d715f644e.zip | |
Move the hardcoded relay endpoint data to the Connect component
Diffstat (limited to 'app/containers')
| -rw-r--r-- | app/containers/ConnectPage.js | 2 | ||||
| -rw-r--r-- | app/containers/SelectLocationPage.js | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/containers/ConnectPage.js b/app/containers/ConnectPage.js index ceb16054ce..d629e83fc7 100644 --- a/app/containers/ConnectPage.js +++ b/app/containers/ConnectPage.js @@ -21,7 +21,7 @@ const mapDispatchToProps = (dispatch, props) => { return { onSettings: () => dispatch(push('/settings')), onSelectLocation: () => dispatch(push('/select-location')), - onConnect: (addr) => connect(backend, addr), + onConnect: (relayEndpoint) => connect(backend, relayEndpoint), onCopyIP: () => copyIPAddress(), onDisconnect: () => disconnect(backend), onExternalLink: (type) => shell.openExternal(links[type]), diff --git a/app/containers/SelectLocationPage.js b/app/containers/SelectLocationPage.js index 824274c15c..c11c4b59dd 100644 --- a/app/containers/SelectLocationPage.js +++ b/app/containers/SelectLocationPage.js @@ -18,7 +18,13 @@ const mapDispatchToProps = (dispatch, props) => { // add delay to let the map load setTimeout(() => { settings.updateSettings({ preferredServer }); - backend.connect(server.address); + + // TODO: Don't use these hardcoded values + backend.connect({ + host: server.address, + port: 1300, + protocol: 'udp', + }); }, 600); } }; |
