diff --git a/theonionbox/stamp.py b/theonionbox/stamp.py index 7e605ce..05e0247 100644 --- a/theonionbox/stamp.py +++ b/theonionbox/stamp.py @@ -1,4 +1,4 @@ __title__ = 'The Onion Box' __description__ = 'Dashboard to monitor Tor node operations.' __version__ = '19.2b6' -__stamp__ = '20191129|162336' \ No newline at end of file +__stamp__ = '20191129|205240' \ No newline at end of file diff --git a/theonionbox/tob/version.py b/theonionbox/tob/version.py index 16d7150..ca7c20e 100644 --- a/theonionbox/tob/version.py +++ b/theonionbox/tob/version.py @@ -135,7 +135,7 @@ def update(self): if proxy_address is None: return False - # v5.0 + # v19.2 __VERSION_PROTOCOL__ = 3 proxies = { @@ -164,12 +164,8 @@ def update(self): if r is None: return False - - self.lmc.last_mod_header = r.headers.get('Last-Modified', '') - if r.status_code == requests.codes.not_modified: return True - if r.status_code != 200: return False @@ -215,4 +211,6 @@ def update(self): if _null is not None: self.Null.version = _null.get('version', None) + self.lmc.last_mod_header = r.headers.get('Last-Modified', '') + return True