Ignore:
Timestamp:
Feb 18, 2011, 12:35:56 AM (11 years ago)
Author:
jch
Message:

Push testig for UTP enabled further down.

There's no need to test for DHT/uTP being enabled in tr-udp. The DHT
will silently discard any packets directed at the wrong session (see the
beginning of dhtCallback). As to uTP, we need to grok uTP packets
to close any remaining connections after we disabled uTP, so it's better
to participate in uTP, just reject any incoming connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-utp.c

    r11922 r11926  
    5050    tr_address addr;
    5151    tr_port port;
     52
     53    if( !tr_sessionIsUTPEnabled(ss) ) {
     54        UTP_Close(s);
     55        return;
     56    }
    5257   
    5358    UTP_GetPeerName(s, from, &fromlen);
Note: See TracChangeset for help on using the changeset viewer.