We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46e2f5 commit a8458caCopy full SHA for a8458ca
http/client.lua
@@ -127,6 +127,15 @@ local function connect(options, timeout)
127
family = cs.AF_UNSPEC
128
end
129
130
+ local path = options.path
131
+ if path then
132
+ if family ~= cs.AF_UNSPEC then
133
+ family = cs.AF_UNIX
134
+ elseif family ~= cs.AF_UNIX then
135
+ error("cannot use .path with non-unix address family")
136
+ end
137
138
+
139
local bind = options.bind
140
if bind ~= nil then
141
assert(type(bind) == "string")
@@ -157,7 +166,6 @@ local function connect(options, timeout)
157
166
}
158
167
159
168
160
- local path = options.path
161
169
local host = options.host
162
170
if not path and not http_util.is_ip(host) then
163
171
local dns_resolver = options.dns_resolver or cqueues_dns.getpool()
0 commit comments