Repository: qpid-proton
Updated Branches:
  refs/heads/master 0ed8b257c -> 391a09fc8


PROTON-1240: Fill in connection::virtual_host() with remote connection host 
field


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

Branch: refs/heads/master
Commit: 391a09fc807cec0a03a51e729d41e8a563481d89
Parents: 0ed8b25
Author: Andrew Stitcher <[email protected]>
Authored: Wed Jun 29 12:28:45 2016 -0400
Committer: Andrew Stitcher <[email protected]>
Committed: Wed Jun 29 12:28:45 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/cpp/src/connection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/391a09fc/proton-c/bindings/cpp/src/connection.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/connection.cpp 
b/proton-c/bindings/cpp/src/connection.cpp
index 45164fe..e550cb3 100644
--- a/proton-c/bindings/cpp/src/connection.cpp
+++ b/proton-c/bindings/cpp/src/connection.cpp
@@ -63,7 +63,7 @@ void connection::open(const connection_options &opts) {
 void connection::close() { pn_connection_close(pn_object()); }
 
 std::string connection::virtual_host() const {
-    return str(pn_connection_get_hostname(pn_object()));
+    return str(pn_connection_remote_hostname(pn_object()));
 }
 
 std::string connection::container_id() const {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to