From 4d03c849868231dc217785c6f0e78eab9cd79fd5 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Sun, 9 Aug 2020 06:44:28 +0000 Subject: tool: fix issue parsing hostname in --server flag Set both the host and port when a ':' isn't found in in the --server flag. The attempted fix in #622 was not complete as the host was not properly set. Fixes #621 --- tools/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/common.c b/tools/common.c index 39c49b1..53ea788 100644 --- a/tools/common.c +++ b/tools/common.c @@ -241,6 +241,7 @@ static void init_connection_info(struct amqp_connection_info *ci) { *port_end != 0) die("bad server port number in '%s'", amqp_server); } else { + ci->host = amqp_server; ci->port = 5672; #if WITH_SSL if (amqp_ssl) { -- cgit v1.2.1