mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 08:10:43 +01:00
imtcp: permit parameter name with typo for backward compatibility
This commit is contained in:
parent
a73caef0b8
commit
2cd686d555
@ -140,6 +140,7 @@ static struct cnfparamdescr modpdescr[] = {
|
||||
{ "notifyonconnectionclose", eCmdHdlrBinary, 0 },
|
||||
{ "addtlframedelimiter", eCmdHdlrPositiveInt, 0 },
|
||||
{ "maxsessions", eCmdHdlrPositiveInt, 0 },
|
||||
{ "maxlistners", eCmdHdlrPositiveInt, 0 },
|
||||
{ "maxlisteners", eCmdHdlrPositiveInt, 0 },
|
||||
{ "streamdriver.mode", eCmdHdlrPositiveInt, 0 },
|
||||
{ "streamdriver.authmode", eCmdHdlrString, 0 },
|
||||
@ -453,7 +454,8 @@ CODESTARTsetModCnf
|
||||
loadModConf->iAddtlFrameDelim = (int) pvals[i].val.d.n;
|
||||
} else if(!strcmp(modpblk.descr[i].name, "maxsessions")) {
|
||||
loadModConf->iTCPSessMax = (int) pvals[i].val.d.n;
|
||||
} else if(!strcmp(modpblk.descr[i].name, "maxlisteners")) {
|
||||
} else if(!strcmp(modpblk.descr[i].name, "maxlisteners") ||
|
||||
!strcmp(modpblk.descr[i].name, "maxlistners")) { /* keep old name for a while */
|
||||
loadModConf->iTCPLstnMax = (int) pvals[i].val.d.n;
|
||||
} else if(!strcmp(modpblk.descr[i].name, "keepalive")) {
|
||||
loadModConf->bKeepAlive = (int) pvals[i].val.d.n;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user