1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-09 21:54:09 +00:00

try to get more connected peers to agree to encrypted connections

This commit is contained in:
Charles Kerr 2007-10-13 15:15:04 +00:00
parent 004ade57f0
commit 4104efbfbf

View file

@ -383,8 +383,12 @@ getCryptoProvide( const tr_handshake * handshake UNUSED )
i |= CRYPTO_PROVIDE_CRYPTO; /* always allow crypto */ 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; i |= CRYPTO_PROVIDE_PLAINTEXT;
#endif
return i; return i;
} }