Skip to content

Commit

Permalink
Print formatted link for server address in serve_localhost.py. (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdashg authored Jul 29, 2024
1 parent 7ffa9be commit 6e77313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serve_localhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 6e77313

Please sign in to comment.