Respect IKE version while selecting an ike_cfg as responder
This commit is contained in:
@@ -1202,7 +1202,8 @@ METHOD(task_manager_t, process_message, status_t,
|
||||
ike_cfg_t *ike_cfg;
|
||||
job_t *job;
|
||||
|
||||
ike_cfg = charon->backends->get_ike_cfg(charon->backends, me, other);
|
||||
ike_cfg = charon->backends->get_ike_cfg(charon->backends,
|
||||
me, other, IKEV1);
|
||||
if (ike_cfg == NULL)
|
||||
{
|
||||
/* no config found for these hosts, destroy */
|
||||
|
||||
@@ -1077,7 +1077,8 @@ METHOD(task_manager_t, process_message, status_t,
|
||||
ike_sa_id_t *ike_sa_id;
|
||||
ike_cfg_t *ike_cfg;
|
||||
job_t *job;
|
||||
ike_cfg = charon->backends->get_ike_cfg(charon->backends, me, other);
|
||||
ike_cfg = charon->backends->get_ike_cfg(charon->backends,
|
||||
me, other, IKEV2);
|
||||
if (ike_cfg == NULL)
|
||||
{
|
||||
/* no config found for these hosts, destroy */
|
||||
|
||||
Reference in New Issue
Block a user