diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-12-19 19:16:42 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-12-29 18:33:21 -0300 |
commit | 75e340bc41803d6fa32df673bb8b1f4e045d4261 (patch) | |
tree | 98b23ed17c5cfb45d0b636c8905d236381e7fb5c /src/leap/bitmask/backend/backend_proxy.py | |
parent | ebcf316318c344ab256ec073d841aa04f3d18d46 (diff) |
Create the certificates if they don't exist.
Fix typo for signal disconnection.
The backend is the one who always creates the certificates. Either if it
is run separately or in a process in the same app as the frontend.
Diffstat (limited to 'src/leap/bitmask/backend/backend_proxy.py')
-rw-r--r-- | src/leap/bitmask/backend/backend_proxy.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/bitmask/backend/backend_proxy.py b/src/leap/bitmask/backend/backend_proxy.py index 9de3501e..3e79289f 100644 --- a/src/leap/bitmask/backend/backend_proxy.py +++ b/src/leap/bitmask/backend/backend_proxy.py @@ -28,6 +28,7 @@ import time import zmq from leap.bitmask.backend.api import API, STOP_REQUEST, PING_REQUEST +from leap.bitmask.backend.utils import generate_zmq_certificates_if_needed from leap.bitmask.backend.utils import get_backend_certificates import logging @@ -49,6 +50,8 @@ class BackendProxy(object): PING_INTERVAL = 2 # secs def __init__(self): + generate_zmq_certificates_if_needed() + self._socket = None # initialize ZMQ stuff: |