Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit d6b2ca3

Browse files
committed
fix: recursive opts parsing
1 parent 71876e9 commit d6b2ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/runtime/dns-nodejs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const MAX_RECURSIVE_DEPTH = 32
99

1010
module.exports = (domain, opts, callback) => {
1111
// recursive is true by default, it's set to false only if explicitly passed as argument in opts
12-
const recursive = opts.recursive.toString() !== 'false'
12+
const recursive = opts.recursive == null || opts.recursive.toString() !== 'false'
1313

1414
let depth
1515
if (recursive) {

0 commit comments

Comments
 (0)