Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit c8d8fd0

Browse files
author
Face Kapow
committed
Code fix (again)
1 parent 7c16016 commit c8d8fd0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

js/modules/dns.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ const throwIPv6Err = (cb) => {
5353
throw err;
5454
};
5555

56-
const lookup = (hostname, optsOpt, cb) => {
57-
const opts = optsOpt;
56+
const lookup = (hostname, opts, cb) => {
5857
if (opts.family && opts.family === 6) return throwIPv6Err(cb);
5958
opts.query = opts.query || 'A';
6059
if (hostname === 'localhost' && opts.query === 'A') {
@@ -77,7 +76,7 @@ const lookup = (hostname, optsOpt, cb) => {
7776
return;
7877
}
7978
const ret = [];
80-
for (const i of [...data.results.keys()])) {
79+
for (const i of [...data.results.keys()]) {
8180
const res = data.results[i];
8281
if (!opts.all && i === 0) {
8382
const addr = res.address.join('.');

0 commit comments

Comments
 (0)