charon-cmd: Use loose matching of gateway identity

This commit is contained in:
Tobias Brunner
2013-05-07 13:53:48 +02:00
parent 8372b8fc54
commit 4dc50bf9de
+1
View File
@@ -180,6 +180,7 @@ static void add_auth_cfg(private_cmd_connection_t *this, peer_cfg_t *peer_cfg,
{
id = identification_create_from_string(this->host);
}
auth->add(auth, AUTH_RULE_IDENTITY_LOOSE, TRUE);
}
auth->add(auth, AUTH_RULE_IDENTITY, id);
peer_cfg->add_auth_cfg(peer_cfg, auth, local);