Browse Source

Consider port opened if we have external ip on the interface

shortcutme 5 years ago
parent
commit
46fb61c68c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/File/FileServer.py

+ 1 - 0
src/File/FileServer.py

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