fix lan ips

This commit is contained in:
wh1te909 2020-08-20 21:23:49 +00:00
parent d4a25cda3b
commit edb3998c69
1 changed files with 4 additions and 4 deletions

View File

@ -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"