Sync mac client with libtransmission's LDS->LDP changes, maybe
This commit is contained in:
parent
2b9ab542cb
commit
627f458e6a
|
@ -386,7 +386,7 @@
|
|||
case TR_PEER_FROM_RESUME:
|
||||
[components addObject: NSLocalizedString(@"From: cache", "Inspector -> Peers tab -> table row tooltip")];
|
||||
break;
|
||||
case TR_PEER_FROM_LDS:
|
||||
case TR_PEER_FROM_LDP:
|
||||
[components addObject: NSLocalizedString(@"From: local peer discovery", "Inspector -> Peers tab -> table row tooltip")];
|
||||
break;
|
||||
case TR_PEER_FROM_PEX:
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
|
||||
- (void) setPEX: (id) sender;
|
||||
- (void) setDHT: (id) sender;
|
||||
- (void) setLDS: (id) sender;
|
||||
- (void) setLDP: (id) sender;
|
||||
|
||||
- (void) setEncryptionMode: (id) sender;
|
||||
|
||||
|
|
|
@ -481,9 +481,9 @@ tr_session * fHandle;
|
|||
tr_sessionSetDHTEnabled(fHandle, [fDefaults boolForKey: @"DHTGlobal"]);
|
||||
}
|
||||
|
||||
- (void) setLDS: (id) sender
|
||||
- (void) setLDP: (id) sender
|
||||
{
|
||||
tr_sessionSetLDSEnabled(fHandle, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
|
||||
tr_sessionSetLDPEnabled(fHandle, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
|
||||
}
|
||||
|
||||
- (void) setEncryptionMode: (id) sender
|
||||
|
@ -1155,7 +1155,7 @@ tr_session * fHandle;
|
|||
[fDefaults setBool: dht forKey: @"DHTGlobal"];
|
||||
|
||||
//dht
|
||||
const BOOL lds = tr_sessionIsLDSEnabled(fHandle);
|
||||
const BOOL lds = tr_sessionIsLDPEnabled(fHandle);
|
||||
[fDefaults setBool: lds forKey: @"LocalPeerDiscovery"];
|
||||
|
||||
//auto start
|
||||
|
|
|
@ -1204,7 +1204,7 @@ int trashDataFile(const char * filename)
|
|||
|
||||
- (NSInteger) totalPeersLocal
|
||||
{
|
||||
return fStat->peersFrom[TR_PEER_FROM_LDS];
|
||||
return fStat->peersFrom[TR_PEER_FROM_LDP];
|
||||
}
|
||||
|
||||
- (NSInteger) totalPeersLTEP
|
||||
|
|
Loading…
Reference in New Issue