From 6e7731356d5701cf453edda109509f1e35a95a16 Mon Sep 17 00:00:00 2001 From: Kelsey Gilbert Date: Mon, 29 Jul 2024 13:47:38 -0700 Subject: [PATCH] Print formatted link for server address in serve_localhost.py. (#3677) --- 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()