Ignore:
Timestamp:
Dec 15, 2009, 5:39:19 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2667 "ignore martian addresses" -- modified this ticket. previously we ignored them from LTEP; now we ignore them regardless of the source. this commit implements this filtering change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r9704 r9778  
    432432    assert( torrentHash );
    433433
    434     fd = tr_netOpenTCP( session, addr, port, isSeed );
    435     dbgmsg( NULL, "tr_netOpenTCP returned fd %d", fd );
     434    fd = tr_netOpenPeerSocket( session, addr, port, isSeed );
     435    dbgmsg( NULL, "tr_netOpenPeerSocket returned fd %d", fd );
    436436
    437437    return fd < 0 ? NULL
     
    562562        tr_netClose( session, io->socket );
    563563
    564     io->socket = tr_netOpenTCP( session, &io->addr, io->port, io->isSeed );
     564    io->socket = tr_netOpenPeerSocket( session, &io->addr, io->port, io->isSeed );
    565565    if( io->socket >= 0 )
    566566    {
Note: See TracChangeset for help on using the changeset viewer.