Ignore:
Timestamp:
Jul 11, 2008, 5:09:53 PM (14 years ago)
Author:
charles
Message:

Update NEWS file to say the Clutch rewrite's been folded into Transmission.

File:
1 edited

Legend:

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

    r6319 r6323  
    254254        char passwd[MAX_PATH_LENGTH];
    255255        const char * clutchDir = tr_getClutchDir( server->session );
    256         char * clutchAlias = tr_strdup_printf( "%s=%s", "/transmission/clutch", clutchDir );
    257256        struct timeval tv = tr_timevalMsec( UNUSED_INTERVAL_MSEC );
    258257
    259 fprintf( stderr, "clutchAlias is [%s]\n", clutchAlias );
    260258        getPasswordFile( server, passwd, sizeof( passwd ) );
    261259        if( !server->isPasswordEnabled )
     
    268266        shttpd_register_uri( server->ctx, "/transmission/rpc", handle_rpc, server );
    269267        shttpd_register_uri( server->ctx, "/transmission/upload", handle_upload, server );
    270         shttpd_set_option(server->ctx, "aliases", clutchAlias );
     268
     269        if( clutchDir && *clutchDir ) {
     270            char * clutchAlias = tr_strdup_printf( "%s=%s", "/transmission/clutch", clutchDir );
     271            tr_inf( _( "Serving the web interface files from \"%s\"" ), clutchDir );
     272            shttpd_set_option( server->ctx, "aliases", clutchAlias );
     273            tr_free( clutchAlias );
     274        }
     275
    271276        shttpd_set_option( server->ctx, "ports", ports );
    272277        shttpd_set_option( server->ctx, "dir_list", "0" );
     
    286291        evtimer_set( &server->timer, rpcPulse, server );
    287292        evtimer_add( &server->timer, &tv );
    288 
    289         tr_free( clutchAlias );
    290293    }
    291294}
Note: See TracChangeset for help on using the changeset viewer.