Update main.py

This commit is contained in:
Saifeddine ALOUI 2024-01-17 14:29:17 +01:00 committed by GitHub
parent 6066842379
commit dd1f43a70e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def main():
if not self._validate_user_and_key():
ASCIIColors.red(f'User is not authorized')
client_ip, client_port = self.client_address
self.add_access_log_entry(user="unknown", ip_address=client_ip, access="Denied", server="None", -1)
self.add_access_log_entry(event='rejected', user="unknown", ip_address=client_ip, access="Denied", server="None", nb_queued_requests_on_server=-1, error="Authentication failed")
self.send_response(403)
self.end_headers()
return