Merge with master
This commit is contained in:
commit
caf78ae3a0
@ -82,6 +82,13 @@ const getResponseCell = (row, filtering, t, isDetailed) => {
|
|||||||
rule_label: rule,
|
rule_label: rule,
|
||||||
response_code: status,
|
response_code: status,
|
||||||
},
|
},
|
||||||
|
[FILTERED_STATUS.NOT_FILTERED_WHITE_LIST]: {
|
||||||
|
domain,
|
||||||
|
encryption_status: boldStatusLabel,
|
||||||
|
filter,
|
||||||
|
rule_label: rule,
|
||||||
|
response_code: status,
|
||||||
|
},
|
||||||
[FILTERED_STATUS.FILTERED_SAFE_SEARCH]: {
|
[FILTERED_STATUS.FILTERED_SAFE_SEARCH]: {
|
||||||
domain,
|
domain,
|
||||||
encryption_status: boldStatusLabel,
|
encryption_status: boldStatusLabel,
|
||||||
|
@ -1213,15 +1213,15 @@ components:
|
|||||||
top_queried_domains:
|
top_queried_domains:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: "#/components/schemas/TopArrayEntry"
|
||||||
top_clients:
|
top_clients:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: "#/components/schemas/TopArrayEntry"
|
||||||
top_blocked_domains:
|
top_blocked_domains:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
$ref: "#/components/schemas/TopArrayEntry"
|
||||||
dns_queries:
|
dns_queries:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@ -1238,6 +1238,12 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: integer
|
type: integer
|
||||||
|
TopArrayEntry:
|
||||||
|
type: object
|
||||||
|
description: Represent the number of hits per key (domain or client IP)
|
||||||
|
properties:
|
||||||
|
domain_or_ip:
|
||||||
|
type: integer
|
||||||
StatsConfig:
|
StatsConfig:
|
||||||
type: object
|
type: object
|
||||||
description: Statistics configuration
|
description: Statistics configuration
|
||||||
|
@ -76,6 +76,7 @@ func (a *AutoHosts) Start() {
|
|||||||
go a.updateLoop()
|
go a.updateLoop()
|
||||||
a.updateChan <- true
|
a.updateChan <- true
|
||||||
|
|
||||||
|
if a.watcher != nil {
|
||||||
go a.watcherLoop()
|
go a.watcherLoop()
|
||||||
|
|
||||||
err := a.watcher.Add(a.hostsFn)
|
err := a.watcher.Add(a.hostsFn)
|
||||||
@ -89,13 +90,16 @@ func (a *AutoHosts) Start() {
|
|||||||
log.Error("Error while initializing watcher for a directory %s: %s", dir, err)
|
log.Error("Error while initializing watcher for a directory %s: %s", dir, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close - close module
|
// Close - close module
|
||||||
func (a *AutoHosts) Close() {
|
func (a *AutoHosts) Close() {
|
||||||
a.updateChan <- false
|
a.updateChan <- false
|
||||||
close(a.updateChan)
|
close(a.updateChan)
|
||||||
|
if a.watcher != nil {
|
||||||
_ = a.watcher.Close()
|
_ = a.watcher.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// update table
|
// update table
|
||||||
|
Loading…
Reference in New Issue
Block a user