Skip to content

Commit

Permalink
Removed error message while falling back to IPv4 (issue #714)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSweden authored and metalefty committed Apr 25, 2017
1 parent 106ae2c commit 5c668dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common/os_calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@ g_tcp_socket(void)
rv = (int)socket(AF_INET6, SOCK_STREAM, 0);
if (rv < 0)
{
log_message(LOG_LEVEL_ERROR, "g_tcp_socket: %s", g_get_strerror());

switch (errno)
{
case EAFNOSUPPORT: /* if IPv6 not supported, retry IPv4 */
Expand All @@ -429,6 +427,7 @@ g_tcp_socket(void)
break;

default:
log_message(LOG_LEVEL_ERROR, "g_tcp_socket: %s", g_get_strerror());
return -1;
}
}
Expand Down

0 comments on commit 5c668dc

Please sign in to comment.