[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Resolve www.torproject.org instead of hardcoding



commit e72adf711185e975e5828cc4147b419b900b6536
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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, []

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits