Ticket #2988: upload_slots_per_torrent.diff

File upload_slots_per_torrent.diff, 980 bytes (added by nifoc, 12 years ago)
  • macosx/Controller.m

     
    303303        if (!randomPort)
    304304            tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_PORT, [fDefaults integerForKey: @"BindPort"]);
    305305       
    306         //hidden pref
     306        //hidden prefs
    307307        if ([fDefaults objectForKey: @"PeerSocketTOS"])
    308308            tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_SOCKET_TOS, [fDefaults integerForKey: @"PeerSocketTOS"]);
     309                if ([fDefaults objectForKey: @"UploadSlotsPerTorrent"])
     310            tr_bencDictAddInt(&settings, TR_PREFS_KEY_UPLOAD_SLOTS_PER_TORRENT, [fDefaults integerForKey: @"UploadSlotsPerTorrent"]);
    309311       
    310312        tr_bencDictAddBool(&settings, TR_PREFS_KEY_PEX_ENABLED, [fDefaults boolForKey: @"PEXGlobal"]);
    311313        tr_bencDictAddBool(&settings, TR_PREFS_KEY_PORT_FORWARDING, [fDefaults boolForKey: @"NatTraversal"]);