diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-06-06 13:44:01 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-06-06 13:44:01 +0100 |
| commit | d20fed36f95e2d535b2272777a78dc84ed9e1e6b (patch) | |
| tree | ebc691c10fd67f5b0f63d967afb319aa4288a462 /gui/src/shared | |
| parent | 9ab06703eba719bafeef9495cd2aa16cfbd13d1e (diff) | |
| parent | 71515c8c71fad734386934a4bb4715c28c97a5f4 (diff) | |
| download | mullvadvpn-d20fed36f95e2d535b2272777a78dc84ed9e1e6b.tar.xz mullvadvpn-d20fed36f95e2d535b2272777a78dc84ed9e1e6b.zip | |
Merge branch 'show-bridge-in-gui'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 3225995e75..891c06c8b9 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -12,6 +12,7 @@ export interface ILocation { longitude: number; mullvadExitIp: boolean; hostname?: string; + bridgeHostname?: string; } export type BlockReason = @@ -32,22 +33,42 @@ export type AfterDisconnect = 'nothing' | 'block' | 'reconnect'; export type TunnelState = 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | 'blocked'; export type TunnelType = 'wireguard' | 'openvpn'; +export function tunnelTypeToString(tunnel: TunnelType): string { + switch (tunnel) { + case 'wireguard': + return 'WireGuard'; + case 'openvpn': + return 'OpenVPN'; + default: + return ''; + } +} export type RelayProtocol = 'tcp' | 'udp'; export type ProxyType = 'shadowsocks' | 'custom'; +export function proxyTypeToString(proxy: ProxyType): string { + switch (proxy) { + case 'shadowsocks': + return 'Shadowsocks'; + case 'custom': + return 'Custom'; + default: + return ''; + } +} export interface ITunnelEndpoint { address: string; protocol: RelayProtocol; - tunnel: TunnelType; + tunnelType: TunnelType; proxy?: IProxyEndpoint; } export interface IProxyEndpoint { address: string; protocol: RelayProtocol; - proxy_type: ProxyType; + proxyType: ProxyType; } export type DaemonEvent = |
