qpid-dispatch git commit: DISPATCH-804: use addr if specified (though it is deprecated)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

qpid-dispatch git commit: DISPATCH-804: use addr if specified (though it is deprecated)

gsim
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master c9262728d -> bc40248a1


DISPATCH-804: use addr if specified (though it is deprecated)


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

Branch: refs/heads/master
Commit: bc40248a1698302c53de51aec33632af12dcd80a
Parents: c926272
Author: Gordon Sim <[hidden email]>
Authored: Fri Aug 11 17:10:43 2017 +0100
Committer: Gordon Sim <[hidden email]>
Committed: Fri Aug 11 17:10:43 2017 +0100

----------------------------------------------------------------------
 src/connection_manager.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/bc40248a/src/connection_manager.c
----------------------------------------------------------------------
diff --git a/src/connection_manager.c b/src/connection_manager.c
index 513b16c..041f231 100644
--- a/src/connection_manager.c
+++ b/src/connection_manager.c
@@ -165,6 +165,10 @@ static void set_config_host(qd_server_config_t *config, qd_entity_t* entity)
         config->host = host;
         free(addr);
     }
+    else if (host && addr && strcmp(host, addr) != 0 && strcmp(host, "127.0.0.1") == 0) {
+        config->host = addr;
+        free(host);
+    }
     else if (host && strcmp(host, "") != 0 ) {
         config->host = host;
         free(addr);


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

Loading...