Only add myself to connect blacklist if running other cli action

This commit is contained in:
shortcutme 2018-01-28 16:42:23 +01:00
parent 56e80f7c0c
commit 48e8b956d2
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -172,4 +172,8 @@ class SiteManager(object):
site_manager = SiteManager() # Singletone
peer_blacklist = [("127.0.0.1", config.fileserver_port)] # Dont add this peers
if config.action == "main": # Don't connect / add myself to peerlist
peer_blacklist = [("127.0.0.1", config.fileserver_port)]
else:
peer_blacklist = []