Changeset 3926


Ignore:
Timestamp:
Nov 22, 2007, 4:15:22 AM (14 years ago)
Author:
charles
Message:

Change the default port from 9090 to 51413 to get in compliance with IANA's port number assignment scheme. (1024 through 49151 are reserved)

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.1

    r3467 r3926  
    8484.It Fl p, -port Ar port
    8585Specifies an alternate port for the client to listen on.  The default is
    86 9090.
     8651413.
    8787.It Fl u, -upload Ar upload-rate
    8888Specifies the maximum upload rate in kB/s, which defaults to 20.  The
  • trunk/doc/ipcproto.txt

    r3578 r3926  
    3535An example version 1 message:
    3636
    37 0000000Ed4:porti9090ee
    38         {"port": 9090}
     370000000Ed4:porti51413ee
     38        {"port": 51413}
    3939
    4040For version 2 the message payload is a bencoded list containing a
     
    371371Format:  int between 0 and 65535
    372372Replies: "succeeded", "failed", "not-supported", "bad-format"
    373 Example: 4:porti9090e
    374          "port", 9090
     373Example: 4:porti51413e
     374         "port", 51413
    375375Details: Change the port the server uses to listen for incoming peer
    376376         connections.
  • trunk/libtransmission/transmission.h

    r3900 r3926  
    6161#endif
    6262
    63 #define TR_DEFAULT_PORT   9090
     63#define TR_DEFAULT_PORT   51413
    6464
    6565enum
  • trunk/macosx/Defaults.plist

    r3868 r3926  
    1414        <true/>
    1515        <key>BindPort</key>
    16         <integer>9090</integer>
     16        <integer>51413</integer>
    1717        <key>CheckDownload</key>
    1818        <false/>
  • trunk/misc/transmissioncli.zsh

    r1098 r3926  
    66'(-d --download)'{-d,--download}'[Maximum download rate (nolimit = -1) (default = -1)]:integer:' \
    77'(-n --net-traversal)'{-n,--nat-traversal}'[Attempt NAT traversal using NAT-PMP or UPnP IGD]' \
    8 '(-p --port)'{-p,--port}'[Port we should listen on (default = 9090)]:integer:' \
     8'(-p --port)'{-p,--port}'[Port we should listen on (default = 51413)]:integer:' \
    99'(-s --scrape)'{-s,--scrape}'[Print counts of seeders/leechers and exit]' \
    1010'(-u --upload)'{-u,--upload}'[Maximum upload rate (nolimit = -1) (default = 20)]:integer:' \
  • trunk/wx/xmission.cc

    r3426 r3926  
    512512    long port;
    513513    wxString key = _T("port");
    514     if( !myConfig->Read( key, &port, 9090 ) )
     514    if( !myConfig->Read( key, &port, TR_DEFAULT_PORT ) )
    515515        myConfig->Write( key, port );
    516516    tr_setBindPort( handle, port );
Note: See TracChangeset for help on using the changeset viewer.