summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kvpnc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kvpnc.cpp b/src/kvpnc.cpp
index b9d120e..991cb06 100644
--- a/src/kvpnc.cpp
+++ b/src/kvpnc.cpp
@@ -8685,7 +8685,7 @@ void KVpnc::disconnectClicked()
delRouteRacoon();
removeIptablesRacoon();
- if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" || GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" ) )
+ if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd || GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd ) )
{
// remove kvpnc entries from secrets file
TQFile papSecretsFile ( "/etc/ppp/pap-secrets" );
@@ -10493,7 +10493,7 @@ void KVpnc::disconnectClicked()
delRouteRacoon();
removeIptablesRacoon();
- if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" || GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" ) )
+ if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd || GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd ) )
{
if ( GlobalConfig->currentProfile->getAuthMethod() == "chap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap-v2" )
{