WIP Building out all features necessary for Let's Encrypt #6

已关闭
coolaj86 请求将 17 次代码提交从 more-acme 合并至 master
仅显示提交 ca01e3112f 的更改 - 显示所有提交

查看文件

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