diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-11-11 06:37:37 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-11-11 06:37:37 +0000 |
commit | d487b4b727ca423aeca2b047c8d28d28dea57b02 (patch) | |
tree | 6a706c07a47c0d8f42f76e301d8690e39f322f5d /src/charon/sa/tasks/child_create.c | |
parent | 91db979cdda4943ab6512dc309ebe1b07273e717 (diff) | |
download | strongswan-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.c | 6 |
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"); |