Software / code / prosody
Changeset
11008:fd735fe2fc50
Merge 0.11->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 10 Jul 2020 13:01:17 +0100 |
| parents | 11006:8ac958938e0f (current diff) 11007:1d8e1f7a587c (diff) |
| children | 11009:74ef9f2334f3 |
| files | net/resolvers/basic.lua |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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);