Changeset 8125


Ignore:
Timestamp:
Apr 3, 2009, 1:26:18 AM (13 years ago)
Author:
livings124
Message:

#1157 random port for daemon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r8108 r8125  
    7979    { 'N', "netrc",                "Set authentication info from a .netrc file", "N",  1, "<filename>" },
    8080    { 'p', "port",                 "Port for incoming peers (Default: " TR_DEFAULT_PEER_PORT_STR ")", "p", 1, "<port>" },
     81    { 'P', "random-port",          "Random port for incomping peers", "P", 1, NULL },
    8182    { 900, "priority-high",        "Set the files' priorities as high", "ph", 1, "<files>" },
    8283    { 901, "priority-normal",      "Set the files' priorities as normal", "pn", 1, "<files>" },
     
    420421                break;
    421422
     423            case 'P':
     424                tr_bencDictAddStr( &top, "method", "session-set" );
     425                tr_bencDictAddBool( args, TR_PREFS_KEY_PEER_PORT_RANDOM_ENABLED, TRUE);
     426                break;
     427
    422428            case 'r':
    423429                tr_bencDictAddStr( &top, "method", "torrent-remove" );
Note: See TracChangeset for help on using the changeset viewer.