Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Freshclam patch to resolve IPv4, IPv6 addresses only if a global addr…
…ess is configured, so as not to attempt IPv6 connections from machines where IPv6 isn't available. Patch courtesy of Guilherme Benkenstein.
  • Loading branch information
micahsnyder committed May 28, 2018
1 parent 678c190 commit 9fd6d90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions freshclam/manager.c
Expand Up @@ -231,6 +231,7 @@ wwwconnect (const char *server, const char *proxy, int pport, char *ip,
hints.ai_family = AF_INET;
#endif
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_ADDRCONFIG;
snprintf (port_s, sizeof (port_s), "%d", port);
port_s[sizeof (port_s) - 1] = 0;
ret = getaddrinfo (hostpt, port_s, &hints, &res);
Expand Down

0 comments on commit 9fd6d90

Please sign in to comment.