My port and ip is no longer necessary for updates

This commit is contained in:
shortcutme 2018-04-28 21:47:33 +02:00
parent a87b6c7022
commit ad955b157b
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 0 additions and 14 deletions

View File

@ -477,20 +477,6 @@ class Site(object):
content_json_modified = self.content_manager.contents[inner_path]["modified"]
body = self.storage.read(inner_path)
# Find out my ip and port
tor_manager = self.connection_server.tor_manager
if tor_manager and tor_manager.enabled and tor_manager.start_onions:
my_ip = tor_manager.getOnion(self.address)
if my_ip:
my_ip += ".onion"
my_port = config.fileserver_port
else:
my_ip = config.ip_external
if self.connection_server.port_opened:
my_port = config.fileserver_port
else:
my_port = 0
while 1:
if not peers or len(published) >= limit:
if event_done: