From 0b19d526a1d31eb079e8e77ee953baeefcc3c251 Mon Sep 17 00:00:00 2001 From: Alberto Sottile Date: Tue, 19 Feb 2019 09:41:41 +0100 Subject: [PATCH] protocols: fix typo in TLS cert rotation code --- syncplay/protocols.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syncplay/protocols.py b/syncplay/protocols.py index 9669261..f9112a7 100755 --- a/syncplay/protocols.py +++ b/syncplay/protocols.py @@ -2,7 +2,6 @@ import json import time from functools import wraps -from os.path import getmtime from twisted.protocols.basic import LineReceiver from twisted.internet.interfaces import IHandshakeListener @@ -671,7 +670,7 @@ class SyncServerProtocol(JSONCommandProtocol): inquiry = message["startTLS"] if "startTLS" in message else None if "send" in inquiry: if not self.isLogged() and self._factory.serverAcceptsTLS and self._factory.options is not None: - if self._factory.checkLastEditCertTime() > self.lastEditCertTime: + if self._factory.checkLastEditCertTime() > self._factory.lastEditCertTime: self._factory.updateTLSContextFactory() self.sendTLS({"startTLS": "true"}) self.transport.startTLS(self._factory.options)