ike-init: Send REDIRECT_SUPPORTED as initiator
[strongswan.git] / src / libcharon / sa / ikev2 / tasks / ike_init.c
index 8c62864..0f9c45a 100644 (file)
@@ -324,6 +324,11 @@ static bool build_payloads(private_ike_init_t *this, message_t *message)
                        send_supported_hash_algorithms(this, message);
                }
        }
+       /* notify other peer if we support redirection */
+       if (!this->old_sa && this->initiator)
+       {
+               message->add_notify(message, FALSE, REDIRECT_SUPPORTED, chunk_empty);
+       }
        return TRUE;
 }