From 24cc26d74b14bf0438da1fad6d0be7e2faaf6f36 Mon Sep 17 00:00:00 2001 From: Mario Linker <15095261+maldag@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:38:00 +0200 Subject: [PATCH] Fix #5918 The method clean_dashboard_address will also return an empty string. In this case the start_address should be used which will account for the "host" parameter used when specifying a Cluster This will fix the bug a firewall popup will be created even if `Localcluster(host=localhost)` is specified --- distributed/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed/node.py b/distributed/node.py index d41a3409850..5cb45c95f4e 100644 --- a/distributed/node.py +++ b/distributed/node.py @@ -145,7 +145,7 @@ def start_http_server( http_addresses = clean_dashboard_address(dashboard_address or default_port) for http_address in http_addresses: - if http_address["address"] is None: + if http_address["address"] is None or http_address["address"] == '': address = self._start_address if isinstance(address, (list, tuple)): address = address[0]