CouchDB
  1. CouchDB
  2. COUCHDB-1423

Peer not set by X-Forwarded-For when using IPv6

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: HTTP Interface
    • Labels:
      None

      Description

      CouchDB transparently handles an X-Forwarded-For header, using the actual client value for the request's "peer" property and logging (albeit modulo COUCHDB-1421). However this does not seem to be working with IPv6 connections.

      When bound on 0.0.0.0 `curl -H "X-Forwarded-For: 123.45.6.7" localhost:5984` logs a peer address of 123.45.6.7. But when bound on :: the same request logs ::FFFF:127.0.0.1

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Nathan Vander Wilt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development