- 
    Type:Bug 
- 
    Resolution: Fixed
- 
    Priority:Blocker - P1 
- 
    Affects Version/s: 1.7.0
- 
    Component/s: Connectivity
- 
    None
- 
    Environment:macOS homebrew
- 
        3
- 
        Iteration Unicornfish
- 
        Not Needed
The mongosh CLI should call net.setDefaultAutoSelectFamily(true) during setup (run.ts), if available, to accommodate for the fact that the homebrew team upgraded mongosh to Node.js 19+ without informing us, leading to connectivity issues when connecting to localhost on systems where that resolves to ::1 before 127.0.0.1.
As a workaround, users can specify NODE_OPTIONS=--enable-network-family-autoselection in their environment variables for mongosh sessions.
- is related to
- 
                    MONGOSH-1391 Allow usage of latest Node.js with mongosh in homebrew -         
- Closed
 
-