add client column and tooltip to blocked requests

This commit is contained in:
Maxim Topchu 2018-09-03 15:55:20 +03:00
parent f12ef5d504
commit bed92f89f0
4 changed files with 49 additions and 8 deletions
client/src/helpers

View file

@ -14,6 +14,9 @@ export const normalizeLogs = logs => logs.map((log) => {
time,
question,
answer: response,
reason,
client,
rule,
} = log;
const { host: domain, type } = question;
const responsesArray = response ? response.map((response) => {
@ -25,6 +28,9 @@ export const normalizeLogs = logs => logs.map((log) => {
domain,
type,
response: responsesArray,
reason,
client,
rule,
};
});