diff options
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 8bee8003b0..d0507cab98 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -250,41 +250,10 @@ export interface IRelayListHostname { active: boolean; weight: number; owned: boolean; - tunnels?: IRelayTunnels; - bridges?: IRelayBridges; + endpointType: RelayEndpointType; } -export interface IRelayTunnels { - openvpn: IOpenVpnTunnelData[]; - wireguard: IWireguardTunnelData[]; -} - -export interface IRelayBridges { - shadowsocks: IShadowsocksEndpointData[]; -} - -export interface IOpenVpnTunnelData { - port: number; - protocol: RelayProtocol; -} - -export interface IWireguardTunnelData { - portRanges: Array<IPortRange>; - // Public key of the tunnel. - publicKey: string; -} - -export interface IPortRange { - first: number; - last: number; -} - -export interface IShadowsocksEndpointData { - port: number; - cipher: string; - password: string; - protocol: RelayProtocol; -} +export type RelayEndpointType = 'wireguard' | 'openvpn' | 'bridge'; export interface ITunnelOptions { openvpn: { |
