Ignore:
Timestamp:
Jun 5, 2008, 4:02:46 AM (14 years ago)
Author:
charles
Message:

(rpc server) fix ACL error reported by pea_

File:
1 edited

Legend:

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

    r6043 r6046  
    4242    char * acl;
    4343};
     44
     45#define dbgmsg(fmt...) tr_deepLog(__FILE__, __LINE__, MY_NAME, ##fmt )
    4446
    4547static void
     
    121123startServer( tr_rpc_server * server )
    122124{
     125    dbgmsg( "in startServer; current context is %p", server->ctx );
     126
    123127    if( !server->ctx )
    124128    {
     
    132136        shttpd_set_option( server->ctx, "dir_list", "0" );
    133137        shttpd_set_option( server->ctx, "root", "/dev/null" );
    134         if( server->acl )
     138        if( server->acl ) {
     139            dbgmsg( "setting acl [%s]", server->acl );
    135140            shttpd_set_option( server->ctx, "acl", server->acl );
     141        }
    136142
    137143        evtimer_set( &server->timer, rpcPulse, server );
     
    304310    const int err = tr_rpcTestACL( server, cidr, setme_errmsg );
    305311
    306     if( err )
     312    if( !err )
    307313    {
    308314        const int isRunning = server->ctx != NULL;
     
    313319        tr_free( server->acl );
    314320        server->acl = tr_strdup( cidr );
     321        dbgmsg( "setting our ACL to [%s]", server->acl );
    315322
    316323        if( isRunning )
Note: See TracChangeset for help on using the changeset viewer.