mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
#3840 LPD does not initiate on startup
This commit is contained in:
parent
5624840ac4
commit
20432d933e
2 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
tr_bencDictAddStr(&settings, TR_PREFS_KEY_INCOMPLETE_DIR, [[[fDefaults stringForKey: @"IncompleteDownloadFolder"]
|
||||
stringByExpandingTildeInPath] UTF8String]);
|
||||
tr_bencDictAddBool(&settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, [fDefaults boolForKey: @"UseIncompleteDownloadFolder"]);
|
||||
|
||||
tr_bencDictAddBool(&settings, TR_PREFS_KEY_LPD_ENABLED, [fDefaults boolForKey: @"LocalPeerDiscoveryGlobal"]);
|
||||
tr_bencDictAddInt(&settings, TR_PREFS_KEY_MSGLEVEL, TR_MSG_DBG);
|
||||
tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, [fDefaults integerForKey: @"PeersTotal"]);
|
||||
tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_TORRENT, [fDefaults integerForKey: @"PeersTorrent"]);
|
||||
|
|
|
@ -1171,7 +1171,7 @@ tr_session * fHandle;
|
|||
|
||||
//dht
|
||||
const BOOL lpd = tr_sessionIsLPDEnabled(fHandle);
|
||||
[fDefaults setBool: lpd forKey: @"LocalPeerDiscovery"];
|
||||
[fDefaults setBool: lpd forKey: @"LocalPeerDiscoveryGlobal"];
|
||||
|
||||
//auto start
|
||||
const BOOL autoStart = !tr_sessionGetPaused(fHandle);
|
||||
|
|
Loading…
Reference in a new issue