chore: log full source hostname
This commit is contained in:
@@ -15,7 +15,7 @@ return static function (): void {
|
||||
$auditBase = [
|
||||
'request_id' => bin2hex(random_bytes(8)),
|
||||
'source_host' => $ctx->sourceHost(),
|
||||
'server_name' => $ctx->serverName(),
|
||||
'server_name' => $ctx->auditServerName(),
|
||||
'target_host' => $settings->targetBaseUrl(),
|
||||
'username' => $ctx->username(),
|
||||
'ttl' => $settings->loginKeyTtl(),
|
||||
|
||||
@@ -57,6 +57,11 @@ final class DirectAdminContext
|
||||
return $this->serverName;
|
||||
}
|
||||
|
||||
public function auditServerName(): string
|
||||
{
|
||||
return $this->sourceHost;
|
||||
}
|
||||
|
||||
public function method(): string
|
||||
{
|
||||
return $this->method;
|
||||
|
||||
@@ -57,7 +57,6 @@ final class Settings
|
||||
{
|
||||
return [
|
||||
'DEFAULT_ENABLE' => 'true',
|
||||
'MAIL_LOGIN_TARGET_NAME' => 'mx1',
|
||||
'MAIL_LOGIN_TARGET_BASE_URL' => 'https://mx1.mojserwer.pl:2222',
|
||||
'MAIL_LOGIN_REDIRECT_URL' => '/',
|
||||
'LOGIN_KEY_TTL' => '14400',
|
||||
|
||||
Reference in New Issue
Block a user