1
- import { BridgeState , IWireguardPublicKey , KeygenEvent } from '../../../shared/daemon-rpc-types' ;
1
+ import {
2
+ BridgeState ,
3
+ IDnsOptions ,
4
+ IWireguardPublicKey ,
5
+ KeygenEvent ,
6
+ } from '../../../shared/daemon-rpc-types' ;
2
7
import { IGuiSettingsState } from '../../../shared/gui-settings-state' ;
3
8
import { BridgeSettingsRedux , IRelayLocationRedux , IWgKey , RelaySettingsRedux } from './reducers' ;
4
9
@@ -97,6 +102,11 @@ export interface IWireguardKeyVerifiedAction {
97
102
verified ?: boolean ;
98
103
}
99
104
105
+ export interface IUpdateDnsOptionsAction {
106
+ type : 'UPDATE_DNS_OPTIONS' ;
107
+ dns : IDnsOptions ;
108
+ }
109
+
100
110
export type SettingsAction =
101
111
| IUpdateGuiSettingsAction
102
112
| IUpdateRelayAction
@@ -116,7 +126,8 @@ export type SettingsAction =
116
126
| IWireguardGenerateKey
117
127
| IWireguardReplaceKey
118
128
| IWireguardKeygenEvent
119
- | IWireguardKeyVerifiedAction ;
129
+ | IWireguardKeyVerifiedAction
130
+ | IUpdateDnsOptionsAction ;
120
131
121
132
function updateGuiSettings ( guiSettings : IGuiSettingsState ) : IUpdateGuiSettingsAction {
122
133
return {
@@ -261,6 +272,13 @@ function completeWireguardKeyVerification(verified?: boolean): IWireguardKeyVeri
261
272
} ;
262
273
}
263
274
275
+ function updateDnsOptions ( dns : IDnsOptions ) : IUpdateDnsOptionsAction {
276
+ return {
277
+ type : 'UPDATE_DNS_OPTIONS' ,
278
+ dns,
279
+ } ;
280
+ }
281
+
264
282
export default {
265
283
updateGuiSettings,
266
284
updateRelay,
@@ -281,4 +299,5 @@ export default {
281
299
replaceWireguardKey,
282
300
verifyWireguardKey,
283
301
completeWireguardKeyVerification,
302
+ updateDnsOptions,
284
303
} ;
0 commit comments