support for virtual IP definition on client side:
if leftsourceip is defined, it is requested. server may define rightsourceip=%config to accept any, or it may overwrite it using rightsourceip. if server does not return an IP, client enforces its configured leftsourceip.
This commit is contained in:
@@ -338,7 +338,10 @@ static void stroke_add_conn(private_stroke_interface_t *this,
|
||||
{
|
||||
my_vip = host_create_from_string(msg->add_conn.me.sourceip, 0);
|
||||
}
|
||||
other_vip = host_create_from_string(msg->add_conn.other.sourceip, 0);
|
||||
if (msg->add_conn.other.virtual_ip)
|
||||
{
|
||||
other_vip = host_create_from_string(msg->add_conn.other.sourceip, 0);
|
||||
}
|
||||
|
||||
if (msg->add_conn.me.tohost)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user