diff options
-rw-r--r-- | python/qpid/qmfconsole.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/qpid/qmfconsole.py b/python/qpid/qmfconsole.py index 7bfe5d1128..bfd201fcc3 100644 --- a/python/qpid/qmfconsole.py +++ b/python/qpid/qmfconsole.py @@ -106,6 +106,9 @@ class BrokerURL: def name(self): return self.host + ":" + str(self.port) + def match(self, host, port): + return socket.gethostbyname(self.host) == socket.gethostbyname(host) and self.port == port + class Session: """ An instance of the Session class represents a console session running |