force unique connections for mediation connections
authorTobias Brunner <tobias@strongswan.org>
Wed, 18 Feb 2009 19:48:11 +0000 (19:48 -0000)
committerTobias Brunner <tobias@strongswan.org>
Wed, 18 Feb 2009 19:48:11 +0000 (19:48 -0000)
src/charon/plugins/stroke/stroke_config.c

index cb91ecb..59c58ca 100644 (file)
@@ -374,6 +374,12 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
                return NULL;
        }
        
+       if (msg->add_conn.ikeme.mediation)
+       {
+               /* force unique connections for mediation connections */
+               msg->add_conn.unique = 1;
+       }
+       
        if (msg->add_conn.ikeme.mediated_by)
        {
                mediated_by = charon->backends->get_peer_cfg_by_name(charon->backends,