diff options
-rw-r--r-- | src/handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c index 604e5f4..dedb482 100644 --- a/src/handshake.c +++ b/src/handshake.c @@ -150,7 +150,7 @@ static fastd_buffer_t new_handshake(fastd_context_t *ctx, uint8_t type, const fa fastd_handshake_add(ctx, &buffer, RECORD_VERSION_NAME, version_len, FASTD_VERSION); fastd_handshake_add(ctx, &buffer, RECORD_PROTOCOL_NAME, protocol_len, ctx->conf->protocol->name); - if (method) + if (method && (!with_method_list || !ctx->conf->secure_handshakes)) fastd_handshake_add(ctx, &buffer, RECORD_METHOD_NAME, method_len, method->name); if (with_method_list) { |