diff options
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 2 | ||||
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 13 |
2 files changed, 4 insertions, 11 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 6b75ee7d3c..735bb91224 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -162,7 +162,7 @@ export type TunnelProtocol = 'wireguard' | 'openvpn'; export type IpVersion = 'ipv4' | 'ipv6'; -interface IRelaySettingsNormal<OpenVpn, Wireguard> { +export interface IRelaySettingsNormal<OpenVpn, Wireguard> { location: Constraint<RelayLocation>; tunnelProtocol: Constraint<TunnelProtocol>; providers: string[]; diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 210e85e007..21d7b6216d 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -13,9 +13,8 @@ import { IDeviceRemoval, IDnsOptions, ILocation, - IRelayList, + IRelayListWithEndpointData, ISettings, - IWireguardEndpointData, ObfuscationSettings, RelaySettingsUpdate, TunnelState, @@ -42,12 +41,6 @@ export interface ITranslations { relayLocations?: GetTextTranslations; } -export interface IRelayListPair { - relays: IRelayList; - bridges: IRelayList; - wireguardEndpointData: IWireguardEndpointData; -} - export type LaunchApplicationResult = { success: true } | { error: string }; export enum MacOsScrollbarVisibility { @@ -65,7 +58,7 @@ export interface IAppStateSnapshot { settings: ISettings; isPerformingPostUpgrade: boolean; deviceState?: DeviceState; - relayListPair: IRelayListPair; + relayList?: IRelayListWithEndpointData; currentVersion: ICurrentAppVersionInfo; upgradeVersion: IAppVersionInfo; guiSettings: IGuiSettingsState; @@ -135,7 +128,7 @@ export const ipcSchema = { disconnected: notifyRenderer<void>(), }, relays: { - '': notifyRenderer<IRelayListPair>(), + '': notifyRenderer<IRelayListWithEndpointData>(), }, currentVersion: { '': notifyRenderer<ICurrentAppVersionInfo>(), |
