Unverified Commit fe68d3b0 authored by Kevin Albertson's avatar Kevin Albertson Committed by GitHub
Browse files

CDRIVER-4682 Detect non-MongoDB host names before SRV lookup. (#1401)



* print failing URI on test failure

* refactor `_detect_nongenuine_hosts` to use separate helper and accept `mongoc_uri_t`

* move `_detect_nongenuine_hosts` earlier

This is intended to ease testing. Tests using bogus URIs will fail SRV lookup. Checking before SRV lookup allows tests to observe the log.

* check SRV hostname

---------

Co-authored-by: default avatarJeremy Mikola <jmikola@gmail.com>
Co-authored-by: default avatarEzra Chung <88335979+eramongodb@users.noreply.github.com>
parent 6a23bd37
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment