mirror of https://github.com/calzoneman/sync.git
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 () {
|
rs.on("end", function () {
|
||||||
if(filterIp) {
|
if(filterIp) {
|
||||||
buffer = buffer.replace(
|
buffer = buffer.replace(
|
||||||
/\d+\.\d+\.(\d+\.\d+)/,
|
/\d+\.\d+\.(\d+\.\d+)/g,
|
||||||
"x.x.$1"
|
"x.x.$1"
|
||||||
).replace(
|
).replace(
|
||||||
/\d+\.\d+\.(\d+)/,
|
/\d+\.\d+\.(\d+)/g,
|
||||||
"x.x.$1.*"
|
"x.x.$1.*"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue