Commit 1369d6e8 authored by nanahira's avatar nanahira

custom dns

parent dc3a7acb
......@@ -45,7 +45,7 @@ class InventoryBuilder {
constructor() {
this.resolveCache = new Map();
this.resolver = new dns.Resolver();
this.resolver.setServers(['114.114.114.114', '223.5.5.5']);
this.resolver.setServers(process.env.DNS ? [process.env.DNS] : ['114.114.114.114', '223.5.5.5']);
}
async load(sheetName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment