Ticket #5923: 5907.patch

File 5907.patch, 732 bytes (added by x190, 7 years ago)
  • libtransmission/session.c

    old new  
    24342434  assert (tr_isSession (session));
    24352435
    24362436  for (l = session->blocklists; l; l = l->next)
    2437     if (tr_blocklistFileHasAddress (l->data, addr))
    2438       return true;
     2437    {
     2438      if (tr_stringEndsWith (tr_blocklistFileGetFilename (l->data), "whitelist.bin"))
     2439        if (tr_blocklistFileHasAddress (l->data, addr))
     2440          return false;
     2441    }
     2442  for (l = session->blocklists; l; l = l->next)
     2443    {
     2444      if (!tr_stringEndsWith (tr_blocklistFileGetFilename (l->data), "whitelist.bin"))
     2445        if (tr_blocklistFileHasAddress (l->data, addr))
     2446          return true;
     2447    }
    24392448
    24402449  return false;
    24412450}