Add the global flag to IP filtering on channel log

This commit is contained in:
calzoneman 2013-08-19 00:40:16 -05:00
parent 1acf27d867
commit 8d9b056af5
1 changed files with 2 additions and 2 deletions

View File

@ -326,10 +326,10 @@ Channel.prototype.readLog = function (filterIp, callback) {
rs.on("end", function () {
if(filterIp) {
buffer = buffer.replace(
/\d+\.\d+\.(\d+\.\d+)/,
/\d+\.\d+\.(\d+\.\d+)/g,
"x.x.$1"
).replace(
/\d+\.\d+\.(\d+)/,
/\d+\.\d+\.(\d+)/g,
"x.x.$1.*"
);
}