SERVER-137176ClosedFixed

get_ipaddr() should return source address when Docker networks are present

jstests/replsets/localhostAuthBypass.js fails in disagg_replica_sets in runNonlocalTest(), which times out connecting to the primary through the address from get_ipaddr() (e.g. 192.168.160.1:20428). The mongod is listening on 0.0.0.0. Cause: get_ipaddr() in jstests/libs/network/host_ipaddr.js takes the first non-loopback inet address from ifconfig/ip addr. Interfaces are listed by name, so docker bridges (br-*, docker0) come before the host NIC. In disagg suites, every DisaggReplSetTest creat

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.