From 4104efbfbf7e5f947dfb38996fd24ae887453b96 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 13 Oct 2007 15:15:04 +0000 Subject: [PATCH] try to get more connected peers to agree to encrypted connections --- libtransmission/handshake.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libtransmission/handshake.c b/libtransmission/handshake.c index 9cb0674af..cae904698 100644 --- a/libtransmission/handshake.c +++ b/libtransmission/handshake.c @@ -383,8 +383,12 @@ getCryptoProvide( const tr_handshake * handshake UNUSED ) i |= CRYPTO_PROVIDE_CRYPTO; /* always allow crypto */ - if( handshake->allowUnencryptedPeers ) /* sometimes allow plaintext */ +#if 0 + /* by the time we send a crypto_provide, we _know_ + * the peer supports encryption. */ + if( handshake->allowUnencryptedPeers ) i |= CRYPTO_PROVIDE_PLAINTEXT; +#endif return i; }