summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-09-13 14:26:57 +0200
committerErik Larkö <erik@mullvad.net>2017-09-13 14:26:57 +0200
commit754af96a12716152f2ddb9e56836e29f28720614 (patch)
tree27d9663ea988ef8c779ec8a9646e37d87381dc1e /app/components
parent057f46bc30102b48b54775c4f43288c87e8203bb (diff)
parentdf25856fe28e3568e1a9fd2584c59ab8a2808ddd (diff)
downloadmullvadvpn-754af96a12716152f2ddb9e56836e29f28720614.tar.xz
mullvadvpn-754af96a12716152f2ddb9e56836e29f28720614.zip
Merge branch 'set_custom_relay'
Diffstat (limited to 'app/components')
-rw-r--r--app/components/Connect.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js
index 7d6269655a..66696fef64 100644
--- a/app/components/Connect.js
+++ b/app/components/Connect.js
@@ -10,6 +10,7 @@ import ExternalLinkSVG from '../assets/images/icon-extLink.svg';
import type { ServerInfo } from '../lib/backend';
import type { HeaderBarStyle } from './HeaderBar';
import type { ConnectionReduxState } from '../redux/connection/reducers';
+import type { RelayEndpoint } from '../lib/ipc-facade';
export type ConnectProps = {
accountExpiry: string,
@@ -17,7 +18,7 @@ export type ConnectProps = {
preferredServer: string,
onSettings: () => void,
onSelectLocation: () => void,
- onConnect: (address: string) => void,
+ onConnect: (relayEndpoint: RelayEndpoint) => void,
onCopyIP: () => void,
onDisconnect: () => void,
onExternalLink: (type: string) => void,
@@ -301,7 +302,12 @@ export default class Connect extends Component {
const preferredServer = this.props.preferredServer;
const serverInfo = this.props.getServerInfo(preferredServer);
if(serverInfo) {
- this.props.onConnect(serverInfo.address);
+ // TODO: Don't use these hardcoded values
+ this.props.onConnect({
+ host: serverInfo.address,
+ port: 1300,
+ protocol: 'udp',
+ });
}
}