Score changes

- Move score from status definition to user scripts
- Separate flow score counter from the peers score
- Create a new HostScore class to hold the score data
This commit is contained in:
emanuele-f 2020-01-16 18:09:21 +01:00
parent 38facb051a
commit 566b9ece0b
29 changed files with 162 additions and 126 deletions

View file

@ -21,7 +21,8 @@ local script = {
function script.hooks.protocolDetected(now)
if(flow.getnDPICategoryName() == "Mining") then
flow.triggerStatus(flow_consts.status_types.status_web_mining_detected.status_id)
flow.triggerStatus(flow_consts.status_types.status_web_mining_detected.status_id,
50--[[ flow score]], 50--[[ cli score ]], 10--[[ srv score ]])
end
end