Skip to content
Snippets Groups Projects
Commit 77b404b6 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Merge branch 'stable'

parents 6bfdb588 414a5c15
No related branches found
No related tags found
No related merge requests found
......@@ -1054,7 +1054,8 @@ local function tcp_server(host, port, opts, timeout)
dns = {{host = host, port = port, family = 'AF_UNIX', protocol = 0,
type = 'SOCK_STREAM' }}
else
dns = getaddrinfo(host, port, timeout, { type = 'SOCK_STREAM' })
dns = getaddrinfo(host, port, timeout, { type = 'SOCK_STREAM',
flags = 'AI_PASSIVE'})
if dns == nil then
return nil
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment