Ignore:
Timestamp:
Oct 23, 2009, 3:41:36 AM (12 years ago)
Author:
charles
Message:

(trunk) trunk's just been too stable lately. #2119: reload settings.json on SIGHUP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r8911 r9387  
    887887
    888888tr_rpc_server *
    889 tr_rpcInit( tr_session  * session,
    890             tr_benc * settings )
     889tr_rpcInit( tr_session  * session, tr_benc * settings )
    891890{
    892891    tr_rpc_server * s;
     
    910909    found = tr_bencDictFindBool( settings, TR_PREFS_KEY_RPC_WHITELIST_ENABLED, &boolVal );
    911910    assert( found );
    912     s->isWhitelistEnabled = boolVal;
     911    tr_rpcSetWhitelistEnabled( s, boolVal );
    913912
    914913    found = tr_bencDictFindBool( settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, &boolVal );
    915914    assert( found );
    916     s->isPasswordEnabled = boolVal;
     915    tr_rpcSetPasswordEnabled( s, boolVal );
    917916
    918917    found = tr_bencDictFindStr( settings, TR_PREFS_KEY_RPC_WHITELIST, &str );
     
    922921    found = tr_bencDictFindStr( settings, TR_PREFS_KEY_RPC_USERNAME, &str );
    923922    assert( found );
    924     s->username = tr_strdup( str );
     923    tr_rpcSetUsername( s, str );
    925924
    926925    found = tr_bencDictFindStr( settings, TR_PREFS_KEY_RPC_PASSWORD, &str );
    927926    assert( found );
    928     if( *str != '{' )
    929         s->password = tr_ssha1( str );
    930     else
    931         s->password = strdup( str );
     927    tr_rpcSetPassword( s, str );
    932928
    933929    found = tr_bencDictFindStr( settings, TR_PREFS_KEY_RPC_BIND_ADDRESS, &str );
Note: See TracChangeset for help on using the changeset viewer.