ike: Add log message if host moves out of NAT
authorTobias Brunner <tobias@strongswan.org>
Fri, 26 Jan 2018 13:03:33 +0000 (14:03 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 10:21:02 +0000 (11:21 +0100)
src/libcharon/sa/ike_sa.c

index 4123cc4..3b08252 100644 (file)
@@ -734,8 +734,11 @@ METHOD(ike_sa_t, set_condition, void,
                        switch (condition)
                        {
                                case COND_NAT_HERE:
-                               case COND_NAT_FAKE:
                                case COND_NAT_THERE:
+                                       DBG1(DBG_IKE, "%s host is not behind NAT anymore",
+                                                condition == COND_NAT_HERE ? "local" : "remote");
+                                       /* fall-through */
+                               case COND_NAT_FAKE:
                                        set_condition(this, COND_NAT_ANY,
                                                                  has_condition(this, COND_NAT_HERE) ||
                                                                  has_condition(this, COND_NAT_THERE) ||