diff --git a/web/src/js/__tests__/components/Modes/__snapshots__/RegularSpec.tsx.snap b/web/src/js/__tests__/components/Modes/__snapshots__/RegularSpec.tsx.snap
index 943d5622a..4c429b979 100644
--- a/web/src/js/__tests__/components/Modes/__snapshots__/RegularSpec.tsx.snap
+++ b/web/src/js/__tests__/components/Modes/__snapshots__/RegularSpec.tsx.snap
@@ -19,14 +19,21 @@ exports[`RegularSpec 1`] = `
>
- Run HTTP/S Proxy
+
@@ -93,14 +100,21 @@ exports[`RegularSpec 2`] = `
>
- Run HTTP/S Proxy
+
diff --git a/web/src/js/components/Modes/Dns.tsx b/web/src/js/components/Modes/Dns.tsx
index 89356ec53..64a85010d 100644
--- a/web/src/js/components/Modes/Dns.tsx
+++ b/web/src/js/components/Modes/Dns.tsx
@@ -49,11 +49,11 @@ function DnsRow({
dispatch(setActive({ server, value: !server.active }))
}
>
- Run DNS Server
Listen Host
dispatch(setActive({ server, value: !server.active }))
}
>
- Intercept traffic for
void;
children: React.ReactNode;
};
-export function ModeToggle({ value, onChange, children }: ModeToggleProps) {
+export function ModeToggle({
+ value,
+ onChange,
+ children,
+ label,
+}: ModeToggleProps) {
+ const id = React.useId();
+
return (
-
+
+
{children}
);
diff --git a/web/src/js/components/Modes/Regular.tsx b/web/src/js/components/Modes/Regular.tsx
index a203893f8..f379ecc3e 100644
--- a/web/src/js/components/Modes/Regular.tsx
+++ b/web/src/js/components/Modes/Regular.tsx
@@ -54,11 +54,11 @@ function RegularRow({
dispatch(setActive({ server, value: !server.active }))
}
>
- Run HTTP/S Proxy
Listen Host
{
dispatch(setActive({ server, value: !server.active }));
}}
>
- Forward
))}
{" "}
- traffic from{" "}
+ {
+ dispatch(setActive({ server, value: !server.active }));
+ }}
+ >
+ traffic from
+
dispatch(setActive({ server, value: !server.active }))
}
>
- Run SOCKS Proxy
Listen Host
dispatch(setActive({ server, value: !server.active }))
}
>
- Run Transparent Proxy
Listen Host
{
dispatch(setActive({ server, value: !server.active }));
}}
>
- Run HTTP/S Proxy and forward requests to
dispatch(setActive({ server, value: !server.active }))
}
>
- Run WireGuard Server
Listen Host