Skip to content
Snippets Groups Projects
Commit 373c6b8b authored by rswindell's avatar rswindell
Browse files

Added ip/host/port/protocol security logging in message header.

parent 90a469bf
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,12 @@ while(client.socket.is_connected && !quit) {
hdr.from_ext=user.number;
}
/* Security logging */
hdr.from_ip_addr = client.ip_address;
hdr.from_host_name = client.host_name;
hdr.from_protocol = client.protocol;
hdr.from_port = client.port;
if(system.trashcan("subject",hdr.subject)) {
log(format("!BLOCKED subject: %s",hdr.subject));
var reason = format("Blocked subject from %s (%s): %s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment