Mod aaa-12 modify remote format

RCA:
SOL:
修改人:zhangtao
检视人:
This commit is contained in:
zhangtaohz 2019-08-27 11:52:04 +08:00
parent 2b50b3b181
commit 465b421c66
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ static int del_remote_host(const log_remote_host_t *conf)
strcat(prefix, "@"); strcat(prefix, "@");
}; };
char redirect[MAX_LINE_SZ]; char redirect[MAX_LINE_SZ];
if (snprintf(redirect, sizeof(redirect), "%s@%s:%u:%s", if (snprintf(redirect, sizeof(redirect), "%s@%s:%u;%s",
prefix, conf->host, conf->port, rfc_tbl[conf->rfc].fmt) < 0) { prefix, conf->host, conf->port, rfc_tbl[conf->rfc].fmt) < 0) {
ULOG_ERR(g_log, "Setting remote redirect[%s:%u:%s] is faulure", conf->host, conf->port, rfc_tbl[conf->rfc].fmt); ULOG_ERR(g_log, "Setting remote redirect[%s:%u:%s] is faulure", conf->host, conf->port, rfc_tbl[conf->rfc].fmt);
return ret; return ret;