mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
allow preferences to set encryption, commented out for now
This commit is contained in:
@@ -78,6 +78,9 @@
|
||||
//set NAT
|
||||
tr_natTraversalEnable(fHandle, [fDefaults boolForKey: @"NatTraversal"]);
|
||||
|
||||
//set encryption
|
||||
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
|
||||
|
||||
//actually set bandwidth limits
|
||||
[self applySpeedSettings: nil];
|
||||
}
|
||||
@@ -336,6 +339,11 @@
|
||||
[sound play];
|
||||
}
|
||||
|
||||
- (void) setEncryptionRequired: (id) sender
|
||||
{
|
||||
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
|
||||
}
|
||||
|
||||
- (void) applySpeedSettings: (id) sender
|
||||
{
|
||||
if ([fDefaults boolForKey: @"SpeedLimit"])
|
||||
|
||||
Reference in New Issue
Block a user