Re: [PATCH] Error page format codes upgrade

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 12 Jun 2013 11:14:16 -0600

On 06/12/2013 02:13 AM, Amos Jeffries wrote:
>>>>> /* - IP stuff */
>>>>> - str.Printf("ClientIP: %s\r\n",
>>>>> src_addr.NtoA(ntoabuf,MAX_IPSTRLEN));
>>>>> +// char ntoabuf[MAX_IPSTRLEN];
>>>>> +//XXX str.Printf("ClientIP: %s\r\n",
>>>>> src_addr.NtoA(ntoabuf,MAX_IPSTRLEN));
>>>> Is this change intentional?
>>> Yes with the src_addr removal we have no way to identify the client IP
>>> in that code anymore.
>> It is not clear what that XXX implies. Add a comment?
>
> Do you think we need to display the client IP there anymore? I'm not
> sure we do.

I suspect that we do not have to display it because it is available as
%>a, right?

On the other hand, if we can handle %>a, why introduce an interface
change here? Should not we keep supplying "ClientIP:" using %>a code or
similar?

Cheers,

Alex.
Received on Wed Jun 12 2013 - 17:14:32 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 13 2013 - 12:01:30 MDT