From 54dec72cf8df02b3115b4b64ce7a0d78eb4abcdf Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 17 Nov 2024 04:31:13 +0700 Subject: [PATCH] :memo: some better informations --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0b6919c..b80ae98 100644 --- a/main.py +++ b/main.py @@ -68,9 +68,9 @@ def save_qr_code(url): # Set up the server with the AuthHandler and the defined port with socketserver.TCPServer(("", args.port), AuthHandler) as httpd: - print(f"Serving the directory '{args.directory}' at http://localhost:{args.port}") print("qrcode.png is saved in the current directory.") ip_address = get_current_ip_address() - print(f"http://{args.username}:{args.password}@{ip_address}:{args.port}/") + print(f"http://{args.username}:{args.password}@{ip_address}:{args.port}/ < the page") + print(f"http://{args.username}:{args.password}@{ip_address}:{args.port}/qrcode.png < qrcode") save_qr_code(f"http://{args.username}:{args.password}@{ip_address}:{args.port}/") httpd.serve_forever() \ No newline at end of file