mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adds support to the server ID generation
The server ID is a sha-1 identifier generated from the mac address of the first ethernet device plus the server name. The process is the same used by ModSecurity 2.9
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "modsecurity/modsecurity.h"
|
||||
#include "src/utils.h"
|
||||
#include "src/unique_id.h"
|
||||
|
||||
|
||||
namespace ModSecurity {
|
||||
|
||||
@@ -39,6 +40,7 @@ namespace ModSecurity {
|
||||
* @endcode
|
||||
*/
|
||||
ModSecurity::ModSecurity() {
|
||||
UniqueId::uniqueId();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user