Ticket #3157: mac-bind-ip-addr.diff

File mac-bind-ip-addr.diff, 962 bytes (added by darklord, 11 years ago)
  • macosx/Controller.m

    diff --git a/macosx/Controller.m b/macosx/Controller.m
    index 03104ad..afca630 100644
    a b static void sleepCallback(void * controller, io_service_t y, natural_t messageTy 
    324324        tr_bencDictAddInt(&settings, TR_PREFS_KEY_RPC_PORT, [fDefaults integerForKey: @"RPCPort"]);
    325325        tr_bencDictAddStr(&settings, TR_PREFS_KEY_RPC_USERNAME,  [[fDefaults stringForKey: @"RPCUsername"] UTF8String]);
    326326        tr_bencDictAddBool(&settings, TR_PREFS_KEY_RPC_WHITELIST_ENABLED,  [fDefaults boolForKey: @"RPCUseWhitelist"]);
    327        
     327                tr_bencDictAddStr(&settings, TR_PREFS_KEY_BIND_ADDRESS_IPV4,  [[fDefaults stringForKey: @"BindAddressIPv4"] UTF8String]);
     328        tr_bencDictAddStr(&settings, TR_PREFS_KEY_BIND_ADDRESS_IPV6,  [[fDefaults stringForKey: @"BindAddressIPv6"] UTF8String]);
     329
    328330        fLib = tr_sessionInit("macosx", configDir, YES, &settings);
    329331        tr_bencFree(&settings);
    330332