fotonauts/mongo-c-driver — comment on commit 5e4219e43162c6026279771c5ecc0f52b35c1517
File: src/net.c line 88
By octo:

You're only ever trying the first address returned. You should iterate over the linked list here and try each entry in turn.