equal
deleted
inserted
replaced
410 pcall(function () |
410 pcall(function () |
411 local unbound = require"net.unbound"; |
411 local unbound = require"net.unbound"; |
412 local unbound_config = configmanager.get("*", "unbound") or {}; |
412 local unbound_config = configmanager.get("*", "unbound") or {}; |
413 unbound_config.hoststxt = false; -- don't look at /etc/hosts |
413 unbound_config.hoststxt = false; -- don't look at /etc/hosts |
414 configmanager.set("*", "unbound", unbound_config); |
414 configmanager.set("*", "unbound", unbound_config); |
415 unbound.purge(); -- ensure the above config is used |
415 unbound.dns.purge(); -- ensure the above config is used |
416 dns = unbound.dns; |
416 dns = unbound.dns; |
417 end) |
417 end) |
418 local idna = require "util.encodings".idna; |
418 local idna = require "util.encodings".idna; |
419 local ip = require "util.ip"; |
419 local ip = require "util.ip"; |
420 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222}); |
420 local c2s_ports = set.new(configmanager.get("*", "c2s_ports") or {5222}); |