[SERVER-15150] Use a more reliable mechanism for getIpAddress Created: 04/Sep/14  Updated: 26/May/18  Resolved: 26/May/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: DO NOT USE - Backlog - Test Infrastructure Group (TIG)
Resolution: Won't Fix Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-14652 Update tests for localhost exception Closed
Participants:

 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.


Generated at Thu Feb 08 03:37:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.