diff --git a/man/3proxy.cfg.3 b/man/3proxy.cfg.3 index ac87e42..22f141c 100644 --- a/man/3proxy.cfg.3 +++ b/man/3proxy.cfg.3 @@ -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 diff --git a/src/common.c b/src/common.c index 9550393..854f5b2 100644 --- a/src/common.c +++ b/src/common.c @@ -502,6 +502,9 @@ int dobuf2(struct clientparam * param, unsigned char * buf, const unsigned char case 'e': i += myinet_ntop(*SAFAMILY(¶m->sinsl), SAADDR(¶m->sinsl), (char *)buf + i, 64); break; + case 'i': + i += myinet_ntop(*SAFAMILY(¶m->sincl), SAADDR(¶m->sinsl), (char *)buf + i, 64); + break; case 'C': i += myinet_ntop(*SAFAMILY(¶m->sincr), SAADDR(¶m->sincr), (char *)buf + i, 64); break;