This commit is contained in:
Calvin Montgomery 2014-05-31 22:13:53 -07:00
parent 13f5e3a2c8
commit 862a7d876d
2 changed files with 3 additions and 3 deletions

View File

@ -559,10 +559,10 @@ Channel.prototype.readLog = function (shouldMaskIP, cb) {
read.on("end", function () {
if (shouldMaskIP) {
buffer = buffer.replace(
/^(\d+\.\d+\.\d+)\.\d+/g,
/(?:^|\s)(\d+\.\d+\.\d+)\.\d+/g,
"$1.x"
).replace(
/^((?:[0-9a-f]+:){3}[0-9a-f]+):(?:[0-9a-f]+:){3}[0-9a-f]+$/,
/(?:^|\s)((?:[0-9a-f]+:){3}[0-9a-f]+):(?:[0-9a-f]+:){3}[0-9a-f]+$/,
"$1:x:x:x:x"
);
}

View File

@ -15,7 +15,7 @@ const TYPE_QUEUE = {
id: "string,boolean",
type: "string",
pos: "string",
title: "string,optional",
title: "string,boolean,optional",
duration: "number,optional",
temp: "boolean,optional"
};