Commit 5557ace1 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: fix udp

parent 398ff6ba
......@@ -197,8 +197,8 @@ int udp_open(const char *interface, const char *ipaddress, int port)
memset (&hints, 0, sizeof (hints));
hints.ai_family = is_ipv6(ipaddress) ? AF_INET6: AF_INET;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_TCP;
hints.ai_flags = IPPROTO_UDP | 0;
hints.ai_protocol = IPPROTO_UDP;
hints.ai_flags = AI_CANONNAME | 0;
result = getaddrinfo(ipaddress, psz_service, &hints, &addr);
if (result < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment