Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Commit 59b3c94

Browse files
committed
DNS is outside scope of http echo
1 parent 354acb7 commit 59b3c94

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var express = require('express')
22
var app = express()
33
const os = require('os')
4-
const dns = require('dns');
54

65
app.set('json spaces', 2);
76

@@ -21,8 +20,7 @@ app.all('*', (req, res) => {
2120
subdomains: req.subdomains,
2221
xhr: req.xhr,
2322
os: {
24-
hostname: os.hostname(),
25-
dns: dns.getServers()
23+
hostname: os.hostname()
2624
}
2725
})
2826
})

0 commit comments

Comments
 (0)