Skip to content

Commit 2036fe7

Browse files
committed
fix: ignore ENOTFOUND during TXT record lookup
The "initial seedlist discovery" spec is underspecified on what to do when a TXT lookup fails, but for the time being we will treat non-existence as an empty result
1 parent a10171b commit 2036fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/uri_parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function parseSrvConnectionString(uri, options, callback) {
8686
// Resolve TXT record and add options from there if they exist.
8787
dns.resolveTxt(lookupAddress, (err, record) => {
8888
if (err) {
89-
if (err.code !== 'ENODATA') {
89+
if (err.code !== 'ENODATA' && err.code !== 'ENOTFOUND') {
9090
return callback(err);
9191
}
9292
record = null;

0 commit comments

Comments
 (0)