moonming commented on a change in pull request #1167: feature: auto import nameservers into APISIX from system resolv file.… URL: https://github.com/apache/incubator-apisix/pull/1167#discussion_r388035389
########## File path: bin/apisix ########## @@ -603,6 +631,18 @@ local function init() sys_conf["worker_processes"] = "auto" end + local dns_addrs = system_dns_resolver() + if dns_addrs then + local dns_resolver = sys_conf["dns_resolver"] + if dns_resolver then + for _, addr in ipairs(dns_addrs) do + table.insert(dns_resolver, 1, addr) + end + else + sys_conf["dns_resolver"] = dns_addrs Review comment: What does this line of code do? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services