killswitch and domain list, also aexcluded apps
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user