Try to detect Windows Clients by looking for INTERNAL_IP4/6_SERVER attribute

This commit is contained in:
Martin Willi
2011-08-19 09:16:16 +02:00
parent 5c0ab65cae
commit 61cf9f512c
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -174,6 +174,11 @@ static void process_attribute(private_ike_config_t *this,
}
break;
}
case INTERNAL_IP4_SERVER:
case INTERNAL_IP6_SERVER:
/* assume it's a Windows client if we see proprietary attributes */
this->ike_sa->enable_extension(this->ike_sa, EXT_MS_WINDOWS);
/* fall */
default:
{
if (this->initiator)