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

Use a more reliable mechanism for getIpAddress

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:

      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.

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

              Created:
              Updated:
              Resolved: