mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
(trunk, libT) #4886 'IPv6-only DHT.dat not being written' -- fixed. bug found & patched by jch.
This commit is contained in:
parent
9fd56f6c76
commit
d010e33c32
1 changed files with 3 additions and 2 deletions
|
@ -352,9 +352,10 @@ tr_dhtUninit(tr_session *ss)
|
|||
|
||||
/* Since we only save known good nodes, avoid erasing older data if we
|
||||
don't know enough nodes. */
|
||||
if(tr_dhtStatus(ss, AF_INET, NULL) < TR_DHT_FIREWALLED)
|
||||
if ((tr_dhtStatus(ss, AF_INET, NULL) < TR_DHT_FIREWALLED) &&
|
||||
(tr_dhtStatus(ss, AF_INET6, NULL) < TR_DHT_FIREWALLED)) {
|
||||
tr_ninf( "DHT", "Not saving nodes, DHT not ready" );
|
||||
else {
|
||||
} else {
|
||||
tr_benc benc;
|
||||
struct sockaddr_in sins[300];
|
||||
struct sockaddr_in6 sins6[300];
|
||||
|
|
Loading…
Reference in a new issue