Ignore:
Timestamp:
Mar 17, 2011, 9:22:58 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) tr_udpParse(): default to port 80 for URLs with a udp scheme and no explicit port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r12177 r12185  
    11071107    if( !err && !port )
    11081108    {
    1109         if( !strcmp( protocol, "ftp" ) ) port = 21;
    1110         if( !strcmp( protocol, "sftp" ) ) port = 22;
    1111         if( !strcmp( protocol, "http" ) ) port = 80;
    1112         if( !strcmp( protocol, "https" ) ) port = 443;
     1109        if( !strcmp( protocol, "udp" ) ) port = 80;
     1110        else if( !strcmp( protocol, "ftp" ) ) port = 21;
     1111        else if( !strcmp( protocol, "sftp" ) ) port = 22;
     1112        else if( !strcmp( protocol, "http" ) ) port = 80;
     1113        else if( !strcmp( protocol, "https" ) ) port = 443;
    11131114    }
    11141115
Note: See TracChangeset for help on using the changeset viewer.