diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2019-03-08 13:59:19 +0000 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2019-03-08 13:59:19 +0000 |
| commit | d61d3b989ace19a74fe01673aff9e586f9f08132 (patch) | |
| tree | 9a87e82c8f6f6cc483379969267bcb00729ef471 /gui/src/shared | |
| parent | e0e7fec6756f5afc2ad8b58a8ebf3b11a9122655 (diff) | |
| parent | b7e4c64b244382c2134fc00a754f0d39cdc65a53 (diff) | |
| download | mullvadvpn-d61d3b989ace19a74fe01673aff9e586f9f08132.tar.xz mullvadvpn-d61d3b989ace19a74fe01673aff9e586f9f08132.zip | |
Merge branch 'filter-relays-in-gui'
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index a2cd296c0c..4582a66549 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -154,6 +154,26 @@ export interface IRelayListHostname { ipv4AddrIn: string; includeInCountry: boolean; weight: number; + tunnels: IRelayTunnels; +} + +export interface IRelayTunnels { + openvpn: IOpenVpnTunnelData[]; + wireguard: IWireguardTunnelData[]; +} + +export interface IOpenVpnTunnelData { + port: number; + protocol: RelayProtocol; +} + +export interface IWireguardTunnelData { + // Port ranges are an array of pairs, such as [[53,53], [10_000, 60_000]], + // which in this case translates that the specific tunnel can be connected on + // port 53 and ports 10'000 through 60'000. + portRanges: Array<[number, number]>; + // Public key of the tunnel. + publicKey: string; } export interface ITunnelOptions { |
