First of all, thanks for the stable releases! I think regular "official" releases make everybody's life much easier =)
Anyway, I noticed some strange behavior in the latest release (2.2.2).
When I update the ipfilter list from the preferences->security menu, the download is successful. However, the log shows:
2008-08-08 22:41:57: Failed to load ipfilter.dat file '/home/amule/.aMule/ipfilter.dat', unknown format encountered.
2008-08-08 22:41:57: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
When I "Reload List" from the preferences->security menu, I get:
2008-08-08 22:52:36: Loading IP-filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2008-08-08 22:52:38: Loaded 293555 IP-ranges from '/home/amule/.aMule/ipfilter.dat'. 1 malformed line was discarded.
2008-08-08 22:52:38: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
In the file IPFilter.cpp the comment caught my attention:
// Try to unpack the file, might be an archive
if (UnpackArchive(path, ipfilter_files).second != EFT_Text) {
AddLogLineM(true,
CFormat(_("Failed to load ipfilter.dat file '%s', unknown format encountered.")) % file);
return 0;
}
Indeed, my downloaded ipfilter file is not an archive... Note: It is actually archive, a zipped file, this is important
I commented out the "return 0" from the block, and the log:
2008-08-08 23:14:36: Failed to load ipfilter.dat file '/home/amule/.aMule/ipfilter.dat', unknown format encountered.
2008-08-08 23:14:37: Loaded 293555 IP-ranges from '/home/amule/.aMule/ipfilter.dat'. 1 malformed line was discarded.
2008-08-08 23:14:37: Loaded 0 IP-ranges from '/home/amule/.aMule/ipfilter_static.dat'. 0 malformed lines were discarded.
No need to refresh manually.
Commenting out the "return 0" line is probably not the most elegant way of fixing this, but might be a clue for you guys.
Is there the same problem in ServerList.cpp as well?
Thanks!
edit: changed the topic to reflect the current understanding of the problem...