Skip to content

Commit

Permalink
Removed error message while falling back to IPv4 (issue neutrinolabs#714
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MichaelSweden committed Apr 22, 2017
1 parent e4d1b14 commit 1d0bba9
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 1d0bba9

Please sign in to comment.