aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/tasks/child_create.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-11-11 06:37:37 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-11-11 06:37:37 +0000
commitd487b4b727ca423aeca2b047c8d28d28dea57b02 (patch)
tree6a706c07a47c0d8f42f76e301d8690e39f322f5d /src/charon/sa/tasks/child_create.c
parent91db979cdda4943ab6512dc309ebe1b07273e717 (diff)
downloadstrongswan-d487b4b727ca423aeca2b047c8d28d28dea57b02.tar.bz2
strongswan-d487b4b727ca423aeca2b047c8d28d28dea57b02.tar.xz
preliminary support of Mobile IPv6
Diffstat (limited to 'src/charon/sa/tasks/child_create.c')
-rw-r--r--src/charon/sa/tasks/child_create.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/charon/sa/tasks/child_create.c b/src/charon/sa/tasks/child_create.c
index ab12b48b1..628d1397c 100644
--- a/src/charon/sa/tasks/child_create.c
+++ b/src/charon/sa/tasks/child_create.c
@@ -300,8 +300,10 @@ static status_t select_and_install(private_child_create_t *this, bool no_dh)
switch (this->mode)
{
case MODE_TRANSPORT:
- if (!ts_list_is_host(this->tsi, other) ||
- !ts_list_is_host(this->tsr, me))
+ if (!this->config->use_proxy_mode(this->config) &&
+ (!ts_list_is_host(this->tsi, other) ||
+ !ts_list_is_host(this->tsr, me))
+ )
{
this->mode = MODE_TUNNEL;
DBG1(DBG_IKE, "not using transport mode, not host-to-host");