Software /
code /
prosody
Diff
net/resolvers/basic.lua @ 11008:fd735fe2fc50
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Jul 2020 13:01:17 +0100 |
parent | 10970:4603697aee50 |
parent | 11007:1d8e1f7a587c |
child | 11414:5a71f14ab77c |
line wrap: on
line diff
--- a/net/resolvers/basic.lua Fri Jul 10 03:33:37 2020 +0200 +++ b/net/resolvers/basic.lua Fri Jul 10 13:01:17 2020 +0100 @@ -70,6 +70,7 @@ local function new(hostname, port, conn_type, extra) local ascii_host = idna_to_ascii(hostname); local targets = nil; + conn_type = conn_type or "tcp"; local is_ip = inet_pton(hostname); if not is_ip and hostname:sub(1,1) == '[' then @@ -87,7 +88,7 @@ return setmetatable({ hostname = ascii_host; port = port; - conn_type = conn_type or "tcp"; + conn_type = conn_type; extra = extra; targets = targets; }, resolver_mt);