Enhance "NOTICE AUTH": show hostname and IDENT reply
This commit is contained in:
parent
c519ba9920
commit
414bfe65eb
|
@ -2257,7 +2257,8 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
|
||||||
Client_SetHostname(c, readbuf);
|
Client_SetHostname(c, readbuf);
|
||||||
if (Conf_NoticeAuth)
|
if (Conf_NoticeAuth)
|
||||||
(void)Conn_WriteStr(i,
|
(void)Conn_WriteStr(i,
|
||||||
"NOTICE AUTH :*** Found your hostname");
|
"NOTICE AUTH :*** Found your hostname: %s",
|
||||||
|
My_Connections[i].host);
|
||||||
#ifdef IDENTAUTH
|
#ifdef IDENTAUTH
|
||||||
++identptr;
|
++identptr;
|
||||||
if (*identptr) {
|
if (*identptr) {
|
||||||
|
@ -2282,8 +2283,10 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
|
||||||
}
|
}
|
||||||
if (Conf_NoticeAuth) {
|
if (Conf_NoticeAuth) {
|
||||||
(void)Conn_WriteStr(i,
|
(void)Conn_WriteStr(i,
|
||||||
"NOTICE AUTH :*** Got %sident response",
|
"NOTICE AUTH :*** Got %sident response%s%s",
|
||||||
*ptr ? "invalid " : "");
|
*ptr ? "invalid " : "",
|
||||||
|
*ptr ? "" : ": ",
|
||||||
|
*ptr ? "" : identptr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);
|
Log(LOG_INFO, "IDENT lookup for connection %d: no result.", i);
|
||||||
|
|
Loading…
Reference in New Issue