You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/11/25 21:01:34 UTC

[38/48] qpid-proton git commit: PROTON-1355: Set ssl.peer_hostname to virtual_host if specified

PROTON-1355: Set ssl.peer_hostname to virtual_host if specified


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2eac44b5
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2eac44b5
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2eac44b5

Branch: refs/heads/go1
Commit: 2eac44b53f26c474a42f28be789a3d20fe909307
Parents: f45cdce
Author: Ulf Lilleengen <lu...@redhat.com>
Authored: Fri Nov 18 09:52:02 2016 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Fri Nov 18 10:41:17 2016 +0000

----------------------------------------------------------------------
 proton-c/bindings/python/proton/reactor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2eac44b5/proton-c/bindings/python/proton/reactor.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/reactor.py b/proton-c/bindings/python/proton/reactor.py
index 1a85bd3..3562aa9 100644
--- a/proton-c/bindings/python/proton/reactor.py
+++ b/proton-c/bindings/python/proton/reactor.py
@@ -565,7 +565,7 @@ class Connector(Handler):
             if not self.ssl_domain:
                 raise SSLUnavailable("amqps: SSL libraries not found")
             self.ssl = SSL(transport, self.ssl_domain)
-            self.ssl.peer_hostname = url.host
+            self.ssl.peer_hostname = self.virtual_host if self.virtual_host != None else url.host
 
     def on_connection_local_open(self, event):
         self._connect(event.connection, event.reactor)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org