931 if target_hosts:contains("localhost") then |
931 if target_hosts:contains("localhost") then |
932 print(" Target 'localhost' cannot be accessed from other servers"); |
932 print(" Target 'localhost' cannot be accessed from other servers"); |
933 target_hosts:remove("localhost"); |
933 target_hosts:remove("localhost"); |
934 end |
934 end |
935 |
935 |
|
936 local modules = set.new(it.to_array(it.values(host_options.modules_enabled))) |
|
937 + set.new(it.to_array(it.values(config.get("*", "modules_enabled")))) |
|
938 + set.new({ config.get(host, "component_module") }); |
|
939 |
|
940 if modules:contains("proxy65") then |
|
941 local proxy65_target = config.get(host, "proxy65_address") or host; |
|
942 local A, AAAA = dns.lookup(proxy65_target, "A"), dns.lookup(proxy65_target, "AAAA"); |
|
943 local prob = {}; |
|
944 if not A then |
|
945 table.insert(prob, "A"); |
|
946 end |
|
947 if v6_supported and not AAAA then |
|
948 table.insert(prob, "AAAA"); |
|
949 end |
|
950 if #prob > 0 then |
|
951 print(" File transfer proxy "..proxy65_target.." has no "..table.concat(prob, "/").." record. Create one or set 'proxy65_address' to the correct host/IP."); |
|
952 end |
|
953 end |
|
954 |
936 for host in target_hosts do |
955 for host in target_hosts do |
937 local host_ok_v4, host_ok_v6; |
956 local host_ok_v4, host_ok_v6; |
938 local res = dns.lookup(host, "A"); |
957 local res = dns.lookup(host, "A"); |
939 if res then |
958 if res then |
940 for _, record in ipairs(res) do |
959 for _, record in ipairs(res) do |