aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/p_cscf
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-02-04 18:41:14 +0100
committerTobias Brunner <tobias@strongswan.org>2016-03-10 11:57:38 +0100
commit276acafa2dd2f3fbe8e0bad50cfd532334a86b9c (patch)
tree434068451b5df89e65535edf0ed78d034b2f7f8c /src/libcharon/plugins/p_cscf
parente8262251e17f97497331dca84a8d490c7605ef69 (diff)
downloadstrongswan-276acafa2dd2f3fbe8e0bad50cfd532334a86b9c.tar.bz2
strongswan-276acafa2dd2f3fbe8e0bad50cfd532334a86b9c.tar.xz
p-cscf: Make sending requests configurable and disable it by default
Diffstat (limited to 'src/libcharon/plugins/p_cscf')
-rw-r--r--src/libcharon/plugins/p_cscf/p_cscf_handler.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcharon/plugins/p_cscf/p_cscf_handler.c b/src/libcharon/plugins/p_cscf/p_cscf_handler.c
index f122f9ac4..76633845e 100644
--- a/src/libcharon/plugins/p_cscf/p_cscf_handler.c
+++ b/src/libcharon/plugins/p_cscf/p_cscf_handler.c
@@ -135,9 +135,13 @@ METHOD(attribute_handler_t, create_attribute_enumerator, enumerator_t *,
.enumerate = (void*)_enumerate_attrs,
.destroy = (void*)free,
},
- .request_ipv4 = has_host_family(vips, AF_INET),
- .request_ipv6 = has_host_family(vips, AF_INET6),
);
+ if (lib->settings->get_bool(lib->settings, "%s.plugins.p-cscf.enable.%s",
+ FALSE, lib->ns, ike_sa->get_name(ike_sa)))
+ {
+ enumerator->request_ipv4 = has_host_family(vips, AF_INET);
+ enumerator->request_ipv6 = has_host_family(vips, AF_INET6);
+ }
return &enumerator->public;
}