If load-tester requests a virtual IP, use a dynamic local traffic selector
authorMartin Willi <martin@revosec.ch>
Mon, 17 Dec 2012 13:22:25 +0000 (14:22 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 17 Dec 2012 13:22:25 +0000 (14:22 +0100)
src/libcharon/plugins/load_tester/load_tester_config.c

index 9543fd4..9e16156 100644 (file)
@@ -535,7 +535,14 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num)
 
        if (num)
        {       /* initiator */
-               add_ts(this->initiator_tsi, child_cfg, TRUE);
+               if (this->vip)
+               {
+                       add_ts(NULL, child_cfg, TRUE);
+               }
+               else
+               {
+                       add_ts(this->initiator_tsi, child_cfg, TRUE);
+               }
                add_ts(this->initiator_tsr, child_cfg, FALSE);
        }
        else
@@ -700,4 +707,3 @@ load_tester_config_t *load_tester_config_create()
 
        return &this->public;
 }
-