[oonib/master] Check version semantically instead of by string (the old code answers wrong for '0.10.0').

commit 480b19722b918abdfaae0d4e694e829a77c2a7a4 Author: Darius Bacon <darius@wry.me> Date: Fri Mar 28 10:58:20 2014 -0700 Check version semantically instead of by string (the old code answers wrong for '0.10.0'). --- oonib/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oonib/runner.py b/oonib/runner.py index 57b0b9f..10bcf65 100644 --- a/oonib/runner.py +++ b/oonib/runner.py @@ -28,7 +28,7 @@ from oonib import oonibackend from oonib import log from txtorcon import __version__ as txtorcon_version -if txtorcon_version < '0.9.0': +if tuple(map(int, txtorcon_version.split('.'))) < (0,9,0): """ Fix for bug in txtorcon versions < 0.9.0 where TCPHiddenServiceEndpoint listens on all interfaces by default.
participants (1)
-
art@torproject.org