/*
* Bacula Director -- User Agent Collector Commands
*
- * Radosław Korzeniewski, MMXVIII
+ * Radoslaw Korzeniewski, MMXVIII
* radoslaw@korzeniewski.net, radekk@inteos.pl
* Inteos Sp. z o.o. http://www.inteos.pl/
*
/* Try to connect for 15 seconds */
if (!ua->api) ua->send_msg(_("Connecting to Client %s at %s:%d\n"),
- client->name(), client->address(buf.addr()), client->FDport);
+ client->name(), get_client_address(ua->jcr, client, buf.addr()), client->FDport);
if (!connect_to_file_daemon(ua->jcr, 1, 15, 0)) {
ua->send_msg(_("Failed to connect to Client %s.\n====\n"),
client->name());
Dmsg0(20, "statistics format Full\n");
continue;
}
+
if (strcasecmp(ua->argk[i], "json") == 0){
format = COLLECT_JSON;
Dmsg0(20, "statistics format JSON\n");