From 16878f6823a1389250f8fff0006c9681d81e4e88 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 22 May 2007 13:49:31 +0000 Subject: 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. --- src/charon/control/interfaces/stroke_interface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/charon/control') diff --git a/src/charon/control/interfaces/stroke_interface.c b/src/charon/control/interfaces/stroke_interface.c index aaaf72a85..544ff61c5 100755 --- a/src/charon/control/interfaces/stroke_interface.c +++ b/src/charon/control/interfaces/stroke_interface.c @@ -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) { -- cgit v1.2.3