Add the global flag to IP filtering on channel log
This commit is contained in:
parent
1acf27d867
commit
8d9b056af5
|
@ -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.*"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue