Comparison

core/s2smanager.lua @ 4599:f9f5230d7a9c

s2smanager, mod_s2s: Move import of dns_max_depth to mod_s2s
author Kim Alvefur <zash@zash.se>
date Sun, 11 Mar 2012 19:14:28 +0100
parent 4576:79c813c4ecc0
child 4684:dc70c4ffb66d
comparison
equal deleted inserted replaced
4597:25d89c7d6aee 4599:f9f5230d7a9c
35 local sha256_hash = require "util.hashes".sha256; 35 local sha256_hash = require "util.hashes".sha256;
36 36
37 local adns, dns = require "net.adns", require "net.dns"; 37 local adns, dns = require "net.adns", require "net.dns";
38 local config = require "core.configmanager"; 38 local config = require "core.configmanager";
39 local dns_timeout = config.get("*", "core", "dns_timeout") or 15; 39 local dns_timeout = config.get("*", "core", "dns_timeout") or 15;
40 local max_dns_depth = config.get("*", "core", "dns_max_depth") or 3;
41 local cfg_sources = config.get("*", "core", "s2s_interface") 40 local cfg_sources = config.get("*", "core", "s2s_interface")
42 or config.get("*", "core", "interface"); 41 or config.get("*", "core", "interface");
43 local sources; 42 local sources;
44 43
45 --FIXME: s2sout should create its own resolver w/ timeout 44 --FIXME: s2sout should create its own resolver w/ timeout