Unverified Commit 1775b963 authored by Mick's avatar Mick Committed by GitHub
Browse files

[Fix] fix incorrectly overwriting the port specified in ServerArgs (#2714)

parent dd2e2d27
......@@ -917,10 +917,9 @@ class Runtime:
atexit.register(self.shutdown)
# Pre-allocate ports
for port in range(10000, 40000):
for port in range(self.server_args.port, 40000):
if is_port_available(port):
break
port += 1
self.server_args.port = port
self.url = self.server_args.url()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment