support %i in loformat

This commit is contained in:
z3APA3A 2016-06-06 17:54:23 +03:00
parent cd35215532
commit 84664a203b
2 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,8 @@ with space and all time based elemnts are in local time zone.
%R - Remote IP
.br
%r - Remote port
.br
%i - Internal IP used to accept client connection
.br
%e - External IP used to establish connection
.br

View File

@ -502,6 +502,9 @@ int dobuf2(struct clientparam * param, unsigned char * buf, const unsigned char
case 'e':
i += myinet_ntop(*SAFAMILY(&param->sinsl), SAADDR(&param->sinsl), (char *)buf + i, 64);
break;
case 'i':
i += myinet_ntop(*SAFAMILY(&param->sincl), SAADDR(&param->sinsl), (char *)buf + i, 64);
break;
case 'C':
i += myinet_ntop(*SAFAMILY(&param->sincr), SAADDR(&param->sincr), (char *)buf + i, 64);
break;