diff options
| -rw-r--r-- | app/lib/ipc-facade.js | 24 |
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: { |
