Support multiple external ips

This commit is contained in:
shortcutme 2019-01-24 15:20:08 +01:00
parent 0a03c30e8a
commit 37979b4f9c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
4 changed files with 12 additions and 9 deletions

View file

@ -667,10 +667,11 @@ class UiWebsocketPlugin(object):
peer_locations.append(peer_location)
# Append myself
my_loc = self.getLoc(geodb, config.ip_external)
if my_loc:
my_loc["ping"] = 0
peer_locations.append(my_loc)
for ip in config.ip_external:
my_loc = self.getLoc(geodb, ip)
if my_loc:
my_loc["ping"] = 0
peer_locations.append(my_loc)
return peer_locations