pull/1/head
Slávek Banko 11 years ago
parent 1b5ad6a8b8
commit 79642e5d87

@ -8685,7 +8685,7 @@ void KVpnc::disconnectClicked()
delRouteRacoon(); delRouteRacoon();
removeIptablesRacoon(); 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 // remove kvpnc entries from secrets file
TQFile papSecretsFile ( "/etc/ppp/pap-secrets" ); TQFile papSecretsFile ( "/etc/ppp/pap-secrets" );
@ -10493,7 +10493,7 @@ void KVpnc::disconnectClicked()
delRouteRacoon(); delRouteRacoon();
removeIptablesRacoon(); 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" ) if ( GlobalConfig->currentProfile->getAuthMethod() == "chap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap-v2" )
{ {

Loading…
Cancel
Save