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 <[email protected]> Authored: Fri Nov 18 09:52:02 2016 +0100 Committer: Gordon Sim <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
