qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject qpid-dispatch git commit: DISPATCH-804: use addr if specified (though it is deprecated)
Date Fri, 11 Aug 2017 16:11:23 GMT
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 <gsim@redhat.com>
Authored: Fri Aug 11 17:10:43 2017 +0100
Committer: Gordon Sim <gsim@redhat.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message