From 1c124149720e24f52b80ce82ce906e69476b7724 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 22 Apr 2025 05:46:36 -0400 Subject: [PATCH] analysis: fix dump url detection Don't use the detected public IP when the user has configured Moonraker to listen exclusively on the localhost. Signed-off-by: Eric Callahan --- moonraker/components/analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/analysis.py b/moonraker/components/analysis.py index 927bda7..9e5e13c 100644 --- a/moonraker/components/analysis.py +++ b/moonraker/components/analysis.py @@ -350,7 +350,7 @@ class GcodeAnalysis: machine: Machine = self.server.lookup_component("machine") host_info = self.server.get_host_info() host_addr: str = host_info["address"] - if host_addr.lower() in ["all", "0.0.0.0"]: + if host_addr.lower() in ("all", "0.0.0.0", "localhost", "127.0.0.1"): address = "127.0.0.1" elif host_addr.lower() == "::": address = "::1"