Move getIpType() from helper to ConnectionServer

This commit is contained in:
Vadim Ushakov 2021-11-03 11:48:02 +07:00
parent 168c436b73
commit d32d9f781b
12 changed files with 109 additions and 47 deletions

View file

@ -49,7 +49,7 @@ class FileRequestPlugin(object):
time_onion_check = time.time() - s
ip_type = helper.getIpType(self.connection.ip)
ip_type = self.server.getIpType(self.connection.ip)
if ip_type == "onion" or self.connection.ip in config.ip_local:
is_port_open = False