search for: net_getpeername

Displaying 2 results from an estimated 2 matches for "net_getpeername".

2005 Jun 23
1
getpeername() and SSL
Hi Timo, first of all: i'm using 0.99.14. You helped me to raw-log the client-IP using something like this in rawlog.c: if (net_getpeername(0, &ip, NULL) == 0) { str = t_strdup_printf("IP: %s\n", net_ip2addr(&ip)); write_full(log_out, str, strlen(str)); } Now i got the problem, that this doesn't work when the client is connected using SSL. After some testing i think, the problem is, that after calling net_get...
2005 Mar 11
3
IP in rawlog
Hi, i'm using dovecot with rawlog enabled. Well, i need to log the IP of the user, too. Could you give me a hint, how this can be implemented? Thanks and regards, Andreas Goertz.