From d79bf2e7330d409356672b2cf8f816e4a722753c Mon Sep 17 00:00:00 2001 From: P2P-Next Date: Sat, 14 Aug 2010 17:00:04 +0300 Subject: [PATCH] instrumentation/hrktorrent: correct ipfilter parser --- instrumentation/hrktorrent/ipfilter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation/hrktorrent/ipfilter.cpp b/instrumentation/hrktorrent/ipfilter.cpp index d320cf9..fcd37bc 100644 --- a/instrumentation/hrktorrent/ipfilter.cpp +++ b/instrumentation/hrktorrent/ipfilter.cpp @@ -75,11 +75,11 @@ CIPFilter::ParseFilterLine(std::string line) std::string::size_type loc2 = line.find_first_of(","); start.assign(line); - start.resize(loc-1); + start.resize(loc); end.assign(line); - end.erase(0,loc+2); - end.resize(loc-1); + end.erase(0,loc+1); + end.resize(loc2-loc-1); if(!AddRule(start,end)) Core->VerbosePrint("Settings", "Error adding line to ip filter."); -- 2.20.1