1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

remove comments/glue code that disabled encryption, although it still won't build in xcode

This commit is contained in:
Mitchell Livingston 2007-09-20 19:30:29 +00:00
parent ad71027cbb
commit 3677ac13d0
3 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@
tr_natTraversalEnable(fHandle, [fDefaults boolForKey: @"NatTraversal"]);
//set encryption
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
//actually set bandwidth limits
[self applySpeedSettings: nil];
@ -341,7 +341,7 @@
- (void) setEncryptionRequired: (id) sender
{
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
}
- (void) applySpeedSettings: (id) sender

View file

@ -1039,7 +1039,7 @@ static int static_lastid = 0;
if (peer->isUploading)
[dic setObject: [NSNumber numberWithFloat: peer->downloadFromRate] forKey: @"DL From Rate"];
[dic setObject: [NSNumber numberWithBool: /*peer->isEncrypted*/NO] forKey: @"Encryption"];
[dic setObject: [NSNumber numberWithBool: peer->isEncrypted] forKey: @"Encryption"];
[dic setObject: [NSString stringWithCString: (char *) peer->client encoding: NSUTF8StringEncoding] forKey: @"Client"];
}