Changeset 8151


Ignore:
Timestamp:
Apr 5, 2009, 4:07:51 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #1157: random port on startup

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r8145 r8151  
    10781078        tr_sessionSetAltSpeedDay( tr, pref_int_get( key ) );
    10791079    }
     1080    else if( !strcmp( key, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START ) )
     1081    {
     1082        tr_sessionSetPeerPortRandomOnStart( tr, pref_flag_get( key ) );
     1083    }
    10801084}
    10811085
  • trunk/gtk/tr-prefs.c

    r8145 r8151  
    13761376    onCorePrefsChanged( NULL, TR_PREFS_KEY_PEER_PORT, data );
    13771377
     1378    s = _( "Randomize the port every launch" );
     1379    w = new_check_button( s, TR_PREFS_KEY_PEER_PORT_RANDOM_ON_START, core );
     1380
    13781381    s = _( "Use UPnP or NAT-PMP port _forwarding from my router" );
    13791382    w = new_check_button( s, TR_PREFS_KEY_PORT_FORWARDING, core );
Note: See TracChangeset for help on using the changeset viewer.