don't print url for localhost if remote tunnel

This commit is contained in:
Concedo 2024-03-16 22:19:04 +08:00
parent 7968bdebbb
commit 9342071f9c

View file

@ -3003,8 +3003,9 @@ def main(launch_args,start_server=True):
if start_server:
if args.remotetunnel:
setuptunnel()
# Flush stdout for previous win32 issue so the client can see output.
print(f"======\nPlease connect to custom endpoint at {epurl}", flush=True)
else:
# Flush stdout for previous win32 issue so the client can see output.
print(f"======\nPlease connect to custom endpoint at {epurl}", flush=True)
asyncio.run(RunServerMultiThreaded(args.host, args.port, embedded_kailite, embedded_kcpp_docs))
else:
# Flush stdout for previous win32 issue so the client can see output.