Changeset 13617


Ignore:
Timestamp:
Nov 11, 2012, 2:42:14 PM (9 years ago)
Author:
jordan
Message:

(trunk, libT) #4886 'IPv6-only DHT.dat not being written' -- fixed. bug found & patched by jch.

File:
1 edited

Legend:

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

    r12587 r13617  
    353353    /* Since we only save known good nodes, avoid erasing older data if we
    354354       don't know enough nodes. */
    355     if(tr_dhtStatus(ss, AF_INET, NULL) < TR_DHT_FIREWALLED)
     355    if ((tr_dhtStatus(ss, AF_INET, NULL) < TR_DHT_FIREWALLED) &&
     356        (tr_dhtStatus(ss, AF_INET6, NULL) < TR_DHT_FIREWALLED)) {
    356357        tr_ninf( "DHT", "Not saving nodes, DHT not ready" );
    357     else {
     358    } else {
    358359        tr_benc benc;
    359360        struct sockaddr_in sins[300];
Note: See TracChangeset for help on using the changeset viewer.