Support multiple address pools configured on a peer_cfg
This commit is contained in:
@@ -778,13 +778,19 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
|
||||
msg->add_conn.rekey.tries, rekey, reauth, jitter, over,
|
||||
msg->add_conn.mobike, msg->add_conn.aggressive,
|
||||
msg->add_conn.dpd.delay, msg->add_conn.dpd.timeout,
|
||||
msg->add_conn.other.sourceip_mask ?
|
||||
msg->add_conn.name : msg->add_conn.other.sourceip,
|
||||
msg->add_conn.ikeme.mediation, mediated_by, peer_id);
|
||||
if (vip)
|
||||
{
|
||||
peer_cfg->add_virtual_ip(peer_cfg, vip);
|
||||
}
|
||||
if (msg->add_conn.other.sourceip_mask)
|
||||
{
|
||||
peer_cfg->add_pool(peer_cfg, msg->add_conn.name);
|
||||
}
|
||||
else if (msg->add_conn.other.sourceip)
|
||||
{
|
||||
peer_cfg->add_pool(peer_cfg, msg->add_conn.other.sourceip);
|
||||
}
|
||||
|
||||
/* build leftauth= */
|
||||
auth_cfg = build_auth_cfg(this, msg, TRUE, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user