[Telepathy-commits] [telepathy-gabble/master] Set google:jingleinfo server to 127.0.0.1 in test

Will Thompson will.thompson at collabora.co.uk
Fri Mar 6 10:07:45 PST 2009


Using localhost, libcurl seems to try only the first address it resolves
to, namely ::1. BaseHTTPServer.HTTPServer doesn't seem to want to bind
to ::1. I can't find any way to make libcurl fall back if ipv6 doesn't
work. :(

Reviewed-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
---
 tests/twisted/jingle/google-relay.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/jingle/google-relay.py b/tests/twisted/jingle/google-relay.py
index 0b963b0..fefd39c 100644
--- a/tests/twisted/jingle/google-relay.py
+++ b/tests/twisted/jingle/google-relay.py
@@ -120,7 +120,7 @@ def test(q, bus, conn, stream):
     relay = jingleinfo.firstChildElement().addElement('relay')
     relay.addElement('token', content='jingle all the way')
     server = relay.addElement('server')
-    server['host'] = 'localhost'
+    server['host'] = '127.0.0.1'
     server['udp'] = '11111'
     server['tcp'] = '22222'
     server['tcpssl'] = '443'
-- 
1.5.6.5



More information about the telepathy-commits mailing list