ike-init: Send REDIRECT_SUPPORTED as initiator

This commit is contained in:
Tobias Brunner 2015-04-20 15:16:10 +02:00
parent 099c0b12b6
commit 10009b2954
1 changed files with 5 additions and 0 deletions

View 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;
}