r17614 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17613‎ | r17614 | r17615 >
Date:12:46, 13 November 2006
Author:river
Status:old
Tags:
Comment:
xff header needs to use short straddr form
Modified paths:
  • /trunk/willow/src/willow/whttp.cc (modified) (history)

Diff [purge]

Index: trunk/willow/src/willow/whttp.cc
@@ -243,7 +243,7 @@
244244 * the request.
245245 */
246246 _header_parser._headers.add("Connection", "close");
247 - _header_parser._headers.add("X-Forwarded-For", _client_socket->straddr().c_str());
 247+ _header_parser._headers.add("X-Forwarded-For", _client_socket->straddr(false).c_str());
248248
249249 if (_header_parser._http_reqtype == REQTYPE_POST) {
250250 if (_header_parser._content_length == -1) {