Move getIpType() from helper to ConnectionServer
This commit is contained in:
parent
168c436b73
commit
d32d9f781b
12 changed files with 109 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue