support for virtual IP definition on client side:
[strongswan.git] / src / charon / control / interfaces / stroke_interface.c
index aaaf72a..544ff61 100755 (executable)
@@ -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)
        {