Author: adrian.chadd
Date: Fri Mar 27 18:43:52 2009
New Revision: 13878

Modified:
    branches/LUSCA_HEAD/src/http.c

Log:
Convert a "is-no-addr" check over to the "new way".



Modified: branches/LUSCA_HEAD/src/http.c
==============================================================================
--- branches/LUSCA_HEAD/src/http.c      (original)
+++ branches/LUSCA_HEAD/src/http.c      Fri Mar 27 18:43:52 2009
@@ -1484,7 +1484,7 @@
      case FORWARDED_FOR_OFF:
        strFwd = httpHeaderGetList(hdr_in, HDR_X_FORWARDED_FOR);
      case FORWARDED_FOR_TRUNCATE:
-       strListAdd(&strFwd, (((orig_request->client_addr.s_addr !=  
no_addr.s_addr) && opt_forwarded_for != FORWARDED_FOR_OFF) ?
+       strListAdd(&strFwd, (((! IsNoAddr(&orig_request->client_addr)) &&  
opt_forwarded_for != FORWARDED_FOR_OFF) ?
                inet_ntoa(orig_request->client_addr) : "unknown"), ',');
        break;
      case FORWARDED_FOR_TRANSPARENT:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to