📝 some better informations
This commit is contained in:
parent
b618e88fae
commit
54dec72cf8
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -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()
|
Loading…
Reference in a new issue