From bdf8ed139a586f3ef1d11574c59813f982ca0698 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Jun 2000 02:21:36 +0000 Subject: Julian Haight's changes. svn path=/trunk/; revision=2900 --- driver.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 4f35261e..c1b171f5 100644 --- a/driver.c +++ b/driver.c @@ -987,7 +987,16 @@ static int readheaders(int sock, if (!run.invisible && n != -1) { /* utter any per-message Received information we need here */ - sprintf(buf, "Received: from %s\r\n", ctl->server.truename); + if (ctl->server.trueaddr) { + sprintf(buf, "Received: from %s [%u.%u.%u.%u]\r\n", + ctl->server.truename, + (unsigned char)ctl->server.trueaddr[0], + (unsigned char)ctl->server.trueaddr[1], + (unsigned char)ctl->server.trueaddr[2], + (unsigned char)ctl->server.trueaddr[3]); + } else { + sprintf(buf, "Received: from %s\r\n", ctl->server.truename); + } n = stuffline(ctl, buf); if (n != -1) { -- cgit v1.2.3