From 8d9b056af50418e7271e6bbd54a96a787af253b3 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 19 Aug 2013 00:40:16 -0500 Subject: [PATCH] Add the global flag to IP filtering on channel log --- channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index e635581e..eb932e62 100644 --- a/channel.js +++ b/channel.js @@ -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.*" ); }