implemented the right|leftallowany feature
This commit is contained in:
@@ -251,12 +251,14 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num)
|
||||
if (this->port && num)
|
||||
{
|
||||
ike_cfg = ike_cfg_create(FALSE, FALSE,
|
||||
this->local, this->port + num - 1, this->remote, IKEV2_NATT_PORT);
|
||||
this->local, FALSE, this->port + num - 1,
|
||||
this->remote, FALSE, IKEV2_NATT_PORT);
|
||||
}
|
||||
else
|
||||
{
|
||||
ike_cfg = ike_cfg_create(FALSE, FALSE,
|
||||
this->local, IKEV2_UDP_PORT, this->remote, IKEV2_UDP_PORT);
|
||||
this->local, FALSE, IKEV2_UDP_PORT,
|
||||
this->remote, FALSE, IKEV2_UDP_PORT);
|
||||
}
|
||||
ike_cfg->add_proposal(ike_cfg, this->proposal->clone(this->proposal));
|
||||
peer_cfg = peer_cfg_create("load-test", IKEV2, ike_cfg,
|
||||
|
||||
Reference in New Issue
Block a user