killswitch and domain list, also aexcluded apps

This commit is contained in:
2026-04-30 16:12:36 +07:00
parent d1f53ad84c
commit 6891e64c4f
17 changed files with 373 additions and 5692 deletions
+5
View File
@@ -8,10 +8,12 @@ import { useEffect } from "react";
import { listen } from "@tauri-apps/api/event";
import VpnControlButton from "@/components/shared/VpnControlButton";
import { useTheme } from "@/ThemeProvider";
import { useSettingsStore } from "@/store/useSettingsStore";
export function VpnControl() {
const { status, setStatus } = useVpnStore();
const { t } = useTranslation();
const { killSwitch, excludedApps, excludedDomains } = useSettingsStore();
// Подключаем тему
const { isDark } = useTheme();
@@ -27,6 +29,9 @@ export function VpnControl() {
prefix: 24,
dns: "10.0.0.2",
mtu: 1380,
killswitchEnabled: killSwitch,
excludedApps: excludedApps,
excludedDomains: excludedDomains,
};
await startVpn(config, "147.45.43.70", 443);
} else {