Changeset 10501


Ignore:
Timestamp:
Apr 20, 2010, 9:59:19 PM (9 years ago)
Author:
livings124
Message:

#3157 add hidden plist options "bind-address-ipv4/6"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10480 r10501  
    289289        tr_bencDictAddInt(&settings, TR_PREFS_KEY_USPEED, [fDefaults integerForKey: @"UploadLimit"]);
    290290        tr_bencDictAddBool(&settings, TR_PREFS_KEY_USPEED_ENABLED, [fDefaults boolForKey: @"CheckUpload"]);
     291       
     292        //hidden prefs
     293        if ([fDefaults objectForKey: @"BindAddressIPv4"])
     294            tr_bencDictAddStr(&settings, TR_PREFS_KEY_BIND_ADDRESS_IPV4,  [[fDefaults stringForKey: @"BindAddressIPv4"] UTF8String]);
     295        if ([fDefaults objectForKey: @"BindAddressIPv6"])
     296            tr_bencDictAddStr(&settings, TR_PREFS_KEY_BIND_ADDRESS_IPV6,  [[fDefaults stringForKey: @"BindAddressIPv6"] UTF8String]);
    291297       
    292298        tr_bencDictAddBool(&settings, TR_PREFS_KEY_BLOCKLIST_ENABLED, [fDefaults boolForKey: @"Blocklist"]);
Note: See TracChangeset for help on using the changeset viewer.