vici: Actually add configured virtual IPs to peer config

This commit is contained in:
Martin Willi
2014-05-07 14:13:37 +02:00
parent e651afe67b
commit 3ad9c34c92
+5
View File
@@ -1689,6 +1689,7 @@ CALLBACK(config_sn, bool,
child_cfg_t *child_cfg;
auth_cfg_t *auth_cfg;
proposal_t *proposal;
host_t *host;
DBG2(DBG_CFG, " conn %s:", name);
@@ -1768,6 +1769,10 @@ CALLBACK(config_sn, bool,
{
ike_cfg->add_proposal(ike_cfg, proposal);
}
while (peer.vips->remove_first(peer.vips, (void**)&host) == SUCCESS)
{
peer_cfg->add_virtual_ip(peer_cfg, host);
}
free_peer_data(&peer);