Update main.py

This commit is contained in:
Saifeddine ALOUI 2024-01-31 21:41:11 +01:00 committed by GitHub
parent 465dfb3c7b
commit 841765df05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def main():
parser.add_argument('--log_path', default="access_log.txt", help='Path to the access log file') parser.add_argument('--log_path', default="access_log.txt", help='Path to the access log file')
parser.add_argument('--users_list', default="authorized_users.txt", help='Path to the config file') parser.add_argument('--users_list', default="authorized_users.txt", help='Path to the config file')
parser.add_argument('--port', type=int, default=8000, help='Port number for the server') parser.add_argument('--port', type=int, default=8000, help='Port number for the server')
parser.add_argument('-d', '--deactivate_security', action='store_true', const=True, default=False, help='Deactivates security') parser.add_argument('-d', '--deactivate_security', action='store_true', help='Deactivates security')
args = parser.parse_args() args = parser.parse_args()
servers = get_config(args.config) servers = get_config(args.config)
authorized_users = get_authorized_users(args.users_list) authorized_users = get_authorized_users(args.users_list)