use package dir, not current dir
This commit is contained in:
parent
45800a42ec
commit
dcfa093e03
|
@ -11,7 +11,7 @@ var nameservers = require('dns').getServers();
|
|||
var index = crypto.randomBytes(2).readUInt16BE(0) % nameservers.length;
|
||||
var nameserver = nameservers[index];
|
||||
|
||||
app.use('/', express.static('./'));
|
||||
app.use('/', express.static(__dirname));
|
||||
app.use('/api', express.json());
|
||||
app.get('/api/dns/:domain', function (req, res, next) {
|
||||
var domain = req.params.domain;
|
||||
|
|
Loading…
Reference in New Issue