📝 some better informations

This commit is contained in:
Ingolf Wagner 2024-11-17 04:31:13 +07:00
parent b618e88fae
commit 54dec72cf8
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -68,9 +68,9 @@ def save_qr_code(url):
# Set up the server with the AuthHandler and the defined port # Set up the server with the AuthHandler and the defined port
with socketserver.TCPServer(("", args.port), AuthHandler) as httpd: 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.") print("qrcode.png is saved in the current directory.")
ip_address = get_current_ip_address() 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}/") save_qr_code(f"http://{args.username}:{args.password}@{ip_address}:{args.port}/")
httpd.serve_forever() httpd.serve_forever()