aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/control
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-05-22 13:49:31 +0000
committerMartin Willi <martin@strongswan.org>2007-05-22 13:49:31 +0000
commit16878f6823a1389250f8fff0006c9681d81e4e88 (patch)
treed1e3a9e4b7cb1289dc9e070c3717cb0eb94b8542 /src/charon/control
parenta06c068191d360522f2e2ec62697e32b2ac9aa3d (diff)
downloadstrongswan-16878f6823a1389250f8fff0006c9681d81e4e88.tar.bz2
strongswan-16878f6823a1389250f8fff0006c9681d81e4e88.tar.xz
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.
Diffstat (limited to 'src/charon/control')
-rwxr-xr-xsrc/charon/control/interfaces/stroke_interface.c5
1 files changed, 4 insertions, 1 deletions
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)
{