diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-02-18 19:48:11 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-02-18 19:48:11 +0000 |
commit | 73883705bd5c90108c035288713332254a817a82 (patch) | |
tree | f7affc842a5faff7bc6e6dd9d0c483d87ed4fe23 /src | |
parent | b250665f58c43c6532618ec5d9a964ce43d5738d (diff) | |
download | strongswan-73883705bd5c90108c035288713332254a817a82.tar.bz2 strongswan-73883705bd5c90108c035288713332254a817a82.tar.xz |
force unique connections for mediation connections
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/plugins/stroke/stroke_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charon/plugins/stroke/stroke_config.c b/src/charon/plugins/stroke/stroke_config.c index cb91ecb72..59c58ca0d 100644 --- a/src/charon/plugins/stroke/stroke_config.c +++ b/src/charon/plugins/stroke/stroke_config.c @@ -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, |