[tor-commits] [stem/master] Resolve www.torproject.org instead of hardcoding
atagar at torproject.org
atagar at torproject.org
Tue Feb 10 05:24:02 UTC 2015
commit e72adf711185e975e5828cc4147b419b900b6536
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon Feb 9 21:30:36 2015 +0100
Resolve www.torproject.org instead of hardcoding
This led to a test failure because the IP changed.
---
test/integ/control/controller.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index 6ec03a0..055955d 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -898,7 +898,7 @@ class TestController(unittest.TestCase):
elif test.runner.require_online(self):
return
- host = '38.229.72.14' # www.torproject.org
+ host = socket.gethostbyname('www.torproject.org')
port = 443
runner = test.runner.get_runner()
@@ -1173,7 +1173,7 @@ class TestController(unittest.TestCase):
elif test.runner.require_version(self, Requirement.EXTENDCIRCUIT_PATH_OPTIONAL):
return
- host = '38.229.72.14' # www.torproject.org
+ host = socket.gethostbyname('www.torproject.org')
port = 80
circuit_id, streams = None, []
More information about the tor-commits
mailing list