From edb3998c698f98f5e9ff6fdfd7a6e51abe4ec2ac Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 20 Aug 2020 21:23:49 +0000 Subject: [PATCH] fix lan ips --- api/tacticalrmm/agents/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/tacticalrmm/agents/models.py b/api/tacticalrmm/agents/models.py index 1e75f0bb..324edc68 100644 --- a/api/tacticalrmm/agents/models.py +++ b/api/tacticalrmm/agents/models.py @@ -153,10 +153,10 @@ class Agent(models.Model): if validators.ipv4(ip): ret.append(ip) - if len(ret) == 1: - return ret[0] - else: - return ", ".join(ret) + if len(ret) == 1: + return ret[0] + else: + return ", ".join(ret) except: return "error getting local ips"