Skip to content

Commit

Permalink
desktop: fix crash on toggling custom dns (#5538)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed May 9, 2024
1 parent 080101b commit d605bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/desktop/src/api/os-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export const osIntegrationRouter = t.router({

customDns: t.procedure.query(() => config.customDns),
setCustomDns: t.procedure
.input(z.boolean())
.input(z.boolean().optional())
.mutation(({ input: customDns }) => {
if (customDns) enableCustomDns();
else disableCustomDns();
config.customDns = customDns;
config.customDns = !!customDns;
}),

proxyRules: t.procedure.query(() => config.proxyRules),
Expand Down

0 comments on commit d605bc2

Please sign in to comment.