android: Fix remote identity fallback after changing IKE config creation
Fixes: 9486a2e5b0
("ike-cfg: Pass arguments as struct")
This commit is contained in:
parent
44e74d9f3e
commit
07a6e59b1c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue