Consider port opened if we have external ip on the interface

This commit is contained in:
shortcutme 2019-01-30 14:58:11 +01:00
parent 860ef650f9
commit 46fb61c68c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -203,6 +203,7 @@ class FileServer(ConnectionServer):
for ip in interface_ips:
if not helper.isPrivateIp(ip) and ip not in self.ip_external_list:
self.ip_external_list.append(ip)
res[helper.getIpType(ip)] = True # We have opened port if we have external ip
SiteManager.peer_blacklist.append((ip, self.port))
self.log.debug("External ip found on interfaces: %s" % ip)