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:
parent
004ade57f0
commit
4104efbfbf
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue