mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
chore: don't warn on ECONNREFUSED to peer sockets. (#4678)
Fixes #1031.
This commit is contained in:
parent
b641906b13
commit
568b23374c
1 changed files with 2 additions and 1 deletions
|
@ -239,7 +239,8 @@ tr_peer_socket tr_netOpenPeerSocket(tr_session* session, tr_address const& addr,
|
||||||
#endif
|
#endif
|
||||||
sockerrno != EINPROGRESS)
|
sockerrno != EINPROGRESS)
|
||||||
{
|
{
|
||||||
if (auto const tmperrno = sockerrno; (tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH) || addr.is_ipv4())
|
if (auto const tmperrno = sockerrno;
|
||||||
|
(tmperrno != ECONNREFUSED && tmperrno != ENETUNREACH && tmperrno != EHOSTUNREACH) || addr.is_ipv4())
|
||||||
{
|
{
|
||||||
tr_logAddWarn(fmt::format(
|
tr_logAddWarn(fmt::format(
|
||||||
_("Couldn't connect socket {socket} to {address}:{port}: {error} ({error_code})"),
|
_("Couldn't connect socket {socket} to {address}:{port}: {error} ({error_code})"),
|
||||||
|
|
Loading…
Reference in a new issue