diff --git a/install.py b/install.py index a3b456b0..bfe19eac 100644 --- a/install.py +++ b/install.py @@ -481,7 +481,7 @@ def is_enabled(self): class WebappSetup(Setup): packages = ( - 'bcrypt', + 'python3-bcrypt', 'libffi-dev', 'libssl-dev', 'libjpeg-dev', diff --git a/opwen_email_client/util/network.py b/opwen_email_client/util/network.py index 66e29fda..05e04fc2 100644 --- a/opwen_email_client/util/network.py +++ b/opwen_email_client/util/network.py @@ -5,7 +5,7 @@ def check_connection(hostname: str, port: int) -> bool: try: host = gethostbyname(hostname) - with create_connection((host, 80)): + with create_connection((host, port)): return True except OSError: pass diff --git a/opwen_email_client/webapp/tasks.py b/opwen_email_client/webapp/tasks.py index 0f0fec8e..39f0f7dc 100644 --- a/opwen_email_client/webapp/tasks.py +++ b/opwen_email_client/webapp/tasks.py @@ -38,7 +38,7 @@ def sync(*args, **kwargs): user_store=webapp.ioc.user_store, ) - if check_connection(AppConfig.STORAGE_ACCOUNT_HOST, 80): + if check_connection(AppConfig.EMAIL_SERVER_HOSTNAME, 80): sync_emails() else: start_internet_connection = StartInternetConnection(