mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 02:14:49 +00:00
Dashboard: minor fix, use 0.0.0.0 in port search instead of localhost
Possible related to docker on WSL issues
This commit is contained in:
1 parent
f2b01a0573
commit
2909c67d50
1 file changed
+1
-1
@@ -136,7 +136,7 @@ class SerenaDashboardAPI:
|
||||
while port <= 65535:
|
||||
try:
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||
sock.bind(("localhost", port))
|
||||
sock.bind(("0.0.0.0", port))
|
||||
return port
|
||||
except OSError:
|
||||
port += 1
|
||||
|
||||
Reference in new issue
Block a user