Skip to content

Commit

Permalink
Fixed: Issue in the handshaking with the Update service.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphwetzel committed Nov 29, 2019
1 parent d0c7ba5 commit 6fea48c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion theonionbox/stamp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__title__ = 'The Onion Box'
__description__ = 'Dashboard to monitor Tor node operations.'
__version__ = '19.2b6'
__stamp__ = '20191129|162336'
__stamp__ = '20191129|205240'
8 changes: 3 additions & 5 deletions theonionbox/tob/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def update(self):
if proxy_address is None:
return False

# v5.0
# v19.2
__VERSION_PROTOCOL__ = 3

proxies = {
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 6fea48c

Please sign in to comment.