client_test works better on windows now

This commit is contained in:
Arvid Norberg 2005-10-19 18:00:17 +00:00
parent eb92fa8b68
commit 0c1c9d375d
1 changed files with 24 additions and 22 deletions

View File

@ -531,6 +531,8 @@ int main(int ac, char* av[])
// here ranges may overlap, and it is the last added
// rule that has precedence for addresses that may fall
// into more than one range.
if (!ip_filter_file.empty())
{
std::ifstream in(ip_filter_file.c_str());
ip_filter filter;
while (in.good())
@ -553,8 +555,8 @@ int main(int ac, char* av[])
if (in.fail()) break;
filter.add_rule(start, last, flags);
}
ses.set_ip_filter(filter);
}
boost::filesystem::path save_path(save_path_str);
// load the torrents given on the commandline