From 60cf8689f73e9cdc45b9b2c239b4703a7847554f Mon Sep 17 00:00:00 2001 From: Kelsey Gilbert Date: Mon, 29 Jul 2024 10:19:37 -0700 Subject: [PATCH] Print formatted link for server address in serve_localhost.py. --- serve_localhost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serve_localhost.py b/serve_localhost.py index ec676650ac..9ec6ea5216 100755 --- a/serve_localhost.py +++ b/serve_localhost.py @@ -37,5 +37,6 @@ def end_headers(self): handler_class = partial(NoCacheRequestHandler, directory=args.directory) server = http.server.ThreadingHTTPServer((args.bind, args.port), handler_class) - print('Serving ThreadingHTTPServer for', args, '...') + print('Serving ThreadingHTTPServer for', args, 'at:') + print(f'\thttp://{args.bind}:{args.port}/') server.serve_forever()