aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-07-25 13:40:53 +0200
committerMartin Willi <martin@revosec.ch>2013-09-04 10:38:37 +0200
commit7446fa28603a88f111aa12f817473c62825837a6 (patch)
tree5136b3c8429d3e7eee4c719670d15df590f33105 /src
parent0edce687675df8f10f4026fa12a8fc3b3dd003f5 (diff)
downloadstrongswan-7446fa28603a88f111aa12f817473c62825837a6.tar.bz2
strongswan-7446fa28603a88f111aa12f817473c62825837a6.tar.xz
trap-manager: use ike_cfg resolver functions
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/sa/trap_manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcharon/sa/trap_manager.c b/src/libcharon/sa/trap_manager.c
index 37426fc47..0d5c10d59 100644
--- a/src/libcharon/sa/trap_manager.c
+++ b/src/libcharon/sa/trap_manager.c
@@ -105,16 +105,14 @@ METHOD(trap_manager_t, install, u_int32_t,
/* try to resolve addresses */
ike_cfg = peer->get_ike_cfg(peer);
- other = host_create_from_dns(ike_cfg->get_other_addr(ike_cfg, NULL),
- 0, ike_cfg->get_other_port(ike_cfg));
+ other = ike_cfg->resolve_other(ike_cfg, AF_UNSPEC);
if (!other || other->is_anyaddr(other))
{
DESTROY_IF(other);
DBG1(DBG_CFG, "installing trap failed, remote address unknown");
return 0;
}
- me = host_create_from_dns(ike_cfg->get_my_addr(ike_cfg, NULL),
- other->get_family(other), ike_cfg->get_my_port(ike_cfg));
+ me = ike_cfg->resolve_me(ike_cfg, other->get_family(other));
if (!me || me->is_anyaddr(me))
{
DESTROY_IF(me);