aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-09-07 11:31:01 +0200
committerTobias Brunner <tobias@strongswan.org>2010-10-12 11:11:04 +0200
commitd5bd77512637cf0be88ceea8fc1699e8655cd718 (patch)
treef83cd1423311a04a3712880addd5cb771bc23226 /src
parente6f685b0fae0184fc5da4ca634decf25d6b45652 (diff)
downloadstrongswan-d5bd77512637cf0be88ceea8fc1699e8655cd718.tar.bz2
strongswan-d5bd77512637cf0be88ceea8fc1699e8655cd718.tar.xz
Do not update remote host if we are behind a NAT.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/sa/ike_sa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c
index 9eb18c336..a5dd19952 100644
--- a/src/libcharon/sa/ike_sa.c
+++ b/src/libcharon/sa/ike_sa.c
@@ -857,10 +857,8 @@ METHOD(ike_sa_t, update_hosts, void,
if (!other->equals(other, this->other_host))
{
- /* update others adress if we are NOT NATed,
- * and allow port changes if we are NATed */
- if (!has_condition(this, COND_NAT_HERE) ||
- other->ip_equals(other, this->other_host))
+ /* update others adress if we are NOT NATed */
+ if (!has_condition(this, COND_NAT_HERE))
{
set_other_host(this, other->clone(other));
update = TRUE;