exec @docker
Some checks failed
Setup Native Action / native (3.12.7) (push) Has been skipped
Setup Native Action / docker (3.12.7) (push) Failing after 1m51s

This commit is contained in:
hoangvv 2025-01-15 12:26:10 +07:00
parent e8f98d19ad
commit fe70ae0c21

View File

@ -14,7 +14,7 @@ def find_available_port(start_port=80):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
while True:
try:
sock.bind(('localhost', start_port))
sock.bind((os.getenv('DB_SERVER','localhost'), start_port))
color_log.Show(3,f" {start_port} is Open")
return start_port
except OSError as e: