summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2017-11-20 13:47:27 +0100
committerAndrej Mihajlov <and@mullvad.net>2017-11-23 12:41:13 +0100
commitf175d9d574a019c9edb7e3759703a22f4dbd137a (patch)
treeada51647ebd1f559653ac6ae22a6aac7e6b6bf12
parenta171daa0322374b3682639e92b40b90bb565095c (diff)
downloadmullvadvpn-f175d9d574a019c9edb7e3759703a22f4dbd137a.tar.xz
mullvadvpn-f175d9d574a019c9edb7e3759703a22f4dbd137a.zip
Update RelaySettings annotation
-rw-r--r--app/lib/ipc-facade.js24
1 files changed, 19 insertions, 5 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js
index 9ebbdd73f1..1a7b93ad98 100644
--- a/app/lib/ipc-facade.js
+++ b/app/lib/ipc-facade.js
@@ -29,13 +29,27 @@ export type BackendState = {
};
type RelayProtocol = 'tcp' | 'udp';
type RelaySettings = {
- host: 'any' | { only: string },
- tunnel: {
- openvpn: {
- port: 'any' | { only: number },
- protocol: 'any' | { only: RelayProtocol },
+ normal: {
+ location: 'any' | {
+ only: { city: Array<string> } | { country: string },
+ },
+ tunnel: {
+ openvpn: {
+ port: 'any' | { only: number },
+ protocol: 'any' | { only: RelayProtocol },
+ },
},
},
+} | {
+ custom_tunnel_endpoint: {
+ host: string,
+ tunnel: {
+ openvpn: {
+ port: number,
+ protocol: RelayProtocol
+ }
+ }
+ }
};
export type RelaySettingsUpdate = {
normal: {