mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fixes #8506
This commit is contained in:
parent
782afdfe86
commit
4b5d715005
1 changed files with 4 additions and 1 deletions
|
|
@ -82,10 +82,13 @@ function discord.sendMessage(message_body, settings)
|
|||
|
||||
while retry_attempts > 0 do
|
||||
local message = {
|
||||
username = username,
|
||||
content = message_body,
|
||||
}
|
||||
|
||||
if(username ~= "") then
|
||||
message.username = username
|
||||
end
|
||||
|
||||
local msg = json.encode(message)
|
||||
local post_rc = ntop.httpPost(settings.url, msg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue