mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
android: Fix remote identity fallback after changing IKE config creation
Fixes: 9486a2e5b0b5 ("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)
|
if (!gateway || gateway->get_type(gateway) == ID_ANY)
|
||||||
{
|
{
|
||||||
DESTROY_IF(gateway);
|
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 */
|
/* only use this if remote ID was not configured explicitly */
|
||||||
auth->add(auth, AUTH_RULE_IDENTITY_LOOSE, TRUE);
|
auth->add(auth, AUTH_RULE_IDENTITY_LOOSE, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user