From da2f62aea96c0a472070c2c39376121e4ddca5c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 24 Apr 2015 11:44:17 +1000 Subject: [PATCH] Pass through the downstream clients' address and server --- src/connector.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/connector.c b/src/connector.c index e2a66f36..7b930ea2 100644 --- a/src/connector.c +++ b/src/connector.c @@ -383,10 +383,11 @@ reparse: json_object_del(val, "client_id"); passthrough_id = (client->id << 32) | passthrough_id; json_object_set_new_nocheck(val, "client_id", json_integer(passthrough_id)); - } else + } else { json_object_set_new_nocheck(val, "client_id", json_integer(client->id)); - json_object_set_new_nocheck(val, "address", json_string(client->address_name)); - json_object_set_new_nocheck(val, "server", json_integer(client->server)); + json_object_set_new_nocheck(val, "address", json_string(client->address_name)); + json_object_set_new_nocheck(val, "server", json_integer(client->server)); + } s = json_dumps(val, 0); /* Do not send messages of clients we've already dropped. We