fix(client): resolve hermes_host 0.0.0.0 bind addresses to dialable server host during auto-enrollment
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 15s

This commit is contained in:
2026-09-25 22:44:20 +02:00
parent 2e10aa4819
commit e01421ea8c
3 changed files with 11 additions and 2 deletions
+2
View File
@@ -334,6 +334,8 @@ def send_encrypted_logs_over_socket(config: dict, logs: list):
hub_url = None
if enrollment_secret:
hermes_host = config.get("hermes_host", server_host)
if hermes_host in ("0.0.0.0", "::", None):
hermes_host = server_host if server_host not in ("0.0.0.0", "::", None) else "127.0.0.1"
hermes_port = config.get("hermes_port", 8443)
hub_url = f"http://{hermes_host}:{hermes_port}"
try: