diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-08-09 16:29:28 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-08-11 22:09:11 +0100 |
| commit | 05c8b7239dc689583f224a472cbc3213703a8cbf (patch) | |
| tree | 147d30c0f2b9a74fbcc7c970b03dd9bdaa59be14 /gui/src/shared | |
| parent | ad1bf2df6143031877ab6f02edf9d9b65836d833 (diff) | |
| download | mullvadvpn-05c8b7239dc689583f224a472cbc3213703a8cbf.tar.xz mullvadvpn-05c8b7239dc689583f224a472cbc3213703a8cbf.zip | |
Parse tunnel parameter block reason in GUI
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 8dc87cc2b1..61a0263031 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -15,6 +15,12 @@ export interface ILocation { bridgeHostname?: string; } +export type TunnelParameterError = + | 'no_matching_relay' + | 'no_matching_bridge_relay' + | 'no_wireguard_key' + | 'custom_tunnel_host_resultion_error'; + export type BlockReason = | { reason: @@ -22,10 +28,10 @@ export type BlockReason = | 'set_firewall_policy_error' | 'set_dns_error' | 'start_tunnel_error' - | 'no_matching_relay' | 'is_offline' | 'tap_adapter_problem'; } + | { reason: 'tunnel_parameter_error'; details: TunnelParameterError } | { reason: 'auth_failed'; details?: string }; export type AfterDisconnect = 'nothing' | 'block' | 'reconnect'; |
