summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNuno Santos <nsantos@apache.org>2009-11-12 20:52:11 +0000
committerNuno Santos <nsantos@apache.org>2009-11-12 20:52:11 +0000
commit8ba5e779a297bf70f0694ff320f8598ed99c2c24 (patch)
tree0ba80065287d4983cfc4ded232e75b4d54e4b2c0 /python
parentd6f6d48a2d6901e5dff79dc7ce0b6863b210028b (diff)
downloadqpid-python-8ba5e779a297bf70f0694ff320f8598ed99c2c24.tar.gz
replace gethostbyname() with getaddrinfo(), which supports IPv6 addresses and is thread-safe; had missed one instance on previous checkin
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835537 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qmf/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py
index 6326b777e5..7e0341c6c1 100644
--- a/python/qmf/console.py
+++ b/python/qmf/console.py
@@ -114,7 +114,7 @@ class BrokerURL(URL):
return self.host + ":" + str(self.port)
def match(self, host, port):
- return socket.getaddrinfo(self.host, self.port)[0][4] == socket.gethostbyname(host, port)[0][4]
+ return socket.getaddrinfo(self.host, self.port)[0][4] == socket.getaddrinfo(host, port)[0][4]
class Object(object):
""" This class defines a 'proxy' object representing a real managed object on an agent.