projects
/
cs-p2p-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
162c2da
)
instrumentation/hrktorrent: correct ipfilter parser
author
P2P-Next
<p2p-next@cs.pub.ro>
Sat, 14 Aug 2010 14:00:04 +0000
(17:00 +0300)
committer
P2P-Next
<p2p-next@cs.pub.ro>
Sat, 14 Aug 2010 14:00:04 +0000
(17:00 +0300)
instrumentation/hrktorrent/ipfilter.cpp
patch
|
blob
|
history
diff --git
a/instrumentation/hrktorrent/ipfilter.cpp
b/instrumentation/hrktorrent/ipfilter.cpp
index
d320cf9
..
fcd37bc
100644
(file)
--- 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(",");
\r
\r
start.assign(line);
\r
- start.resize(loc
-1
);
\r
+ start.resize(loc);
\r
\r
end.assign(line);
\r
- end.erase(0,loc+
2
);
\r
- end.resize(loc-1);
\r
+ end.erase(0,loc+
1
);
\r
+ end.resize(loc
2-loc
-1);
\r
\r
if(!AddRule(start,end))
\r
Core->VerbosePrint("Settings", "Error adding line to ip filter.");
\r