Always have connectionserver for site

This commit is contained in:
shortcutme 2018-04-28 21:46:50 +02:00
parent add83c4c7a
commit 5104d0d250
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ class Site(object):
if "main" in sys.modules and "file_server" in dir(sys.modules["main"]): # Use global file server by default if possible
self.connection_server = sys.modules["main"].file_server
else:
self.connection_server = None
self.log.debug("Creating connection server") # remove
self.connection_server = ConnectionServer()
if not self.settings.get("auth_key"): # To auth user in site (Obsolete, will be removed)
self.settings["auth_key"] = CryptHash.random()
self.log.debug("New auth key: %s" % self.settings["auth_key"])