fix(gui-client/windows): deactivate DNS control when we stop connlib (#5828)

Closes #5827

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
This commit is contained in:
Reactor Scram
2024-07-10 20:29:16 +00:00
committed by GitHub
parent 78f1c7c519
commit c3380daa75
2 changed files with 14 additions and 0 deletions

View File

@@ -302,6 +302,7 @@ impl Handler {
ClientMsg::Disconnect => {
if let Some(connlib) = self.connlib.take() {
connlib.disconnect();
dns_control::deactivate()?;
} else {
tracing::error!("Error - Got Disconnect when we're already not connected");
}

View File

@@ -11,6 +11,19 @@ export default function GUI({ title }: { title: string }) {
return (
<Entries href={href} arches={arches} title={title}>
{/*<Entry version="1.1.6" date={new Date("2024-07-10")}>
<ul className="list-disc space-y-2 pl-4 mb-4">
<li className="pl-2">
Fixes{" "}
<Link
href="https://github.com/firezone/firezone/pull/5827"
className="text-accent-500 underline hover:no-underline"
>
a bug where DNS could stop working when you sign out.
</Link>
</li>
</ul>
</Entry>*/}
<Entry version="1.1.5" date={new Date("2024-07-08")}>
<ul className="list-disc space-y-2 pl-4 mb-4">
<li className="pl-2">