diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-05-28 19:22:28 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-05-29 12:26:09 +0100 |
| commit | 13c22e621244f64267c985dd06e521c5931acb05 (patch) | |
| tree | 6a325e3055545b8b04c489dcb458cbf75cefef1e /gui/src | |
| parent | 13711ec4ddf31cb7669fce8fc4d86c31d2f291e6 (diff) | |
| download | mullvadvpn-13c22e621244f64267c985dd06e521c5931acb05.tar.xz mullvadvpn-13c22e621244f64267c985dd06e521c5931acb05.zip | |
Adjust RPC data type schemas for bridge settings
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 6b29ddd764..ff1720be06 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -160,7 +160,8 @@ export interface IRelayListHostname { ipv4AddrIn: string; includeInCountry: boolean; weight: number; - tunnels: IRelayTunnels; + tunnels?: IRelayTunnels; + bridges?: IRelayBridges; } export interface IRelayTunnels { @@ -168,6 +169,10 @@ export interface IRelayTunnels { wireguard: IWireguardTunnelData[]; } +export interface IRelayBridges { + shadowsocks: IShadowsocksEndpointData[]; +} + export interface IOpenVpnTunnelData { port: number; protocol: RelayProtocol; @@ -182,10 +187,16 @@ export interface IWireguardTunnelData { publicKey: string; } +export interface IShadowsocksEndpointData { + port: number; + cipher: string; + password: string; + protocol: RelayProtocol; +} + export interface ITunnelOptions { openvpn: { mssfix?: number; - proxy?: ProxySettings; }; wireguard: { mtu?: number; @@ -233,8 +244,22 @@ export interface ISettings { blockWhenDisconnected: boolean; relaySettings: RelaySettings; tunnelOptions: ITunnelOptions; + bridgeSettings: BridgeSettings; + bridgeState: BridgeState; } +export type BridgeState = 'auto' | 'on' | 'off'; + +export interface IBridgeConstraints { + location: + | 'any' + | { + only: RelayLocation; + }; +} + +export type BridgeSettings = ProxySettings | IBridgeConstraints; + export interface ISocketAddress { host: string; port: number; |
