diff --git a/service/server/killswitch.cpp b/service/server/killswitch.cpp index ae4462a6..88874113 100644 --- a/service/server/killswitch.cpp +++ b/service/server/killswitch.cpp @@ -54,19 +54,19 @@ bool KillSwitch::init() bool KillSwitch::refresh(bool enabled) { -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) QSettings RegHLM("HKEY_LOCAL_MACHINE\\Software\\" + QString(ORGANIZATION_NAME) + "\\" + QString(APPLICATION_NAME), QSettings::NativeFormat); RegHLM.setValue("strictKillSwitchEnabled", enabled); -#endif - +#elif m_appSettigns->setValue("Conf/strictKillSwitchEnabled", enabled); - +#endif if (isStrictKillSwitchEnabled()) { return disableAllTraffic(); } else { return disableKillSwitch(); } + } bool KillSwitch::isStrictKillSwitchEnabled()