Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15150

Use a more reliable mechanism for getIpAddress

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Testing Infrastructure

    Description

      The localhost exception test requires a non-localhost IP address. It was implemented in jstests/libs/host_ipaddr.js using ipconfig & ifconfig (with grep).

      A more reliable mechanism would use a system call like getifaddrs, which returns a linked list of all the network interfaces with details.

      Attachments

        Activity

          People

            backlog-server-tig DO NOT USE - Backlog - Test Infrastructure Group (TIG)
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: