mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -04:00
If load-tester requests a virtual IP, use a dynamic local traffic selector
This commit is contained in:
parent
fe3060f5d0
commit
d9d0f12222
@ -535,7 +535,14 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num)
|
|||||||
|
|
||||||
if (num)
|
if (num)
|
||||||
{ /* initiator */
|
{ /* initiator */
|
||||||
|
if (this->vip)
|
||||||
|
{
|
||||||
|
add_ts(NULL, child_cfg, TRUE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
add_ts(this->initiator_tsi, child_cfg, TRUE);
|
add_ts(this->initiator_tsi, child_cfg, TRUE);
|
||||||
|
}
|
||||||
add_ts(this->initiator_tsr, child_cfg, FALSE);
|
add_ts(this->initiator_tsr, child_cfg, FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -700,4 +707,3 @@ load_tester_config_t *load_tester_config_create()
|
|||||||
|
|
||||||
return &this->public;
|
return &this->public;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user