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"];
}