Skip to content
Snippets Groups Projects
Commit 39cb6f6b authored by rswindell's avatar rswindell
Browse files

Port number for incoming connections logged.

parent 22375084
No related branches found
No related tags found
No related merge requests found
...@@ -539,8 +539,8 @@ static void pop3_thread(void* arg) ...@@ -539,8 +539,8 @@ static void pop3_thread(void* arg)
strcpy(host_ip,inet_ntoa(pop3.client_addr.sin_addr)); strcpy(host_ip,inet_ntoa(pop3.client_addr.sin_addr));
if(startup->options&MAIL_OPT_DEBUG_POP3) if(startup->options&MAIL_OPT_DEBUG_POP3)
lprintf("%04d POP3 connection accepted from: %s" lprintf("%04d POP3 connection accepted from: %s port %u"
,socket, host_ip); ,socket, host_ip, ntohs(pop3.client_addr.sin_port));
if(startup->options&MAIL_OPT_NO_HOST_LOOKUP) if(startup->options&MAIL_OPT_NO_HOST_LOOKUP)
host=NULL; host=NULL;
...@@ -1090,7 +1090,8 @@ static void smtp_thread(void* arg) ...@@ -1090,7 +1090,8 @@ static void smtp_thread(void* arg)
strcpy(host_ip,inet_ntoa(smtp.client_addr.sin_addr)); strcpy(host_ip,inet_ntoa(smtp.client_addr.sin_addr));
lprintf("%04d SMTP connection accepted from: %s", socket, host_ip); lprintf("%04d SMTP connection accepted from: %s port %u"
, socket, host_ip, ntohs(smtp.client_addr.sin_port));
if(startup->options&MAIL_OPT_NO_HOST_LOOKUP) if(startup->options&MAIL_OPT_NO_HOST_LOOKUP)
host=NULL; host=NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment