2
0
mirror of https://git.coolaj86.com/coolaj86/bluecrypt-keypairs.js synced 2025-03-14 12:20:43 +00:00

don't break telebit, duh

This commit is contained in:
AJ ONeal 2019-05-02 23:05:14 -06:00
parent 0ce04b7466
commit ca01e3112f

View File

@ -118,8 +118,11 @@ app.get('/api/dns/:domain', function (req, res, next) {
dig.resolveJson(query, opts);
});
module.exports = app;
if (require.main === module) {
// curl -L http://localhost:3000/api/dns/example.com?type=A
console.log("Listening on localhost:3000");
app.listen(3000);
console.log("Try this:");
console.log("\tcurl -L 'http://localhost:3000/api/dns/example.com?type=A'");
}