We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b537a commit 372c7c0Copy full SHA for 372c7c0
lib/resty/etcd/v3.lua
@@ -436,10 +436,12 @@ function _M.new(opts)
436
connect_opts.client_key = cli.ssl_key_path
437
connect_opts.trusted_ca = opts.trusted_ca
438
439
- -- TODO: implement proxing via unix socket once we have support sync conf via gRPC
440
- -- TODO: we don't support IPv6 yet, should the user pass `[host]:port` so we don't need
441
- -- to adapt it?
442
- local conn, err = grpc.connect(endpoint.address .. ":" .. endpoint.port, connect_opts)
+ local conn, err
+ if unix_socket_proxy then
+ conn, err = grpc.connect(unix_socket_proxy, connect_opts)
+ else
443
+ conn, err = grpc.connect(endpoint.address .. ":" .. endpoint.port, connect_opts)
444
+ end
445
if not conn then
446
return nil, err
447
end
0 commit comments