mirror of https://github.com/calzoneman/sync.git
Fix #372
This commit is contained in:
parent
13f5e3a2c8
commit
862a7d876d
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue