From d3003a1584bed16ac0434f31044283ffcb30e905 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 15 Apr 2022 17:27:36 -0400 Subject: [PATCH] machine: return default values for find public interface Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index bc78513..a304cd0 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -419,7 +419,11 @@ class Machine: "address": addr, "family": fam } - return {} + return { + "ifname": "", + "address": src_ip or "", + "family": "" + } def _find_public_ip(self) -> Optional[str]: # Check for an IPv4 Source IP