android: Fix remote identity fallback after changing IKE config creation

Fixes: 9486a2e5b0 ("ike-cfg: Pass arguments as struct")
This commit is contained in:
Tobias Brunner 2019-06-18 10:22:57 +02:00
parent 44e74d9f3e
commit 07a6e59b1c
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ static job_requeue_t initiate(private_android_service_t *this)
if (!gateway || gateway->get_type(gateway) == ID_ANY)
{
DESTROY_IF(gateway);
gateway = identification_create_from_string(server);
gateway = identification_create_from_string(ike.remote);
/* only use this if remote ID was not configured explicitly */
auth->add(auth, AUTH_RULE_IDENTITY_LOOSE, TRUE);
}