mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
netbase: clean up Proxy logging
This commit is contained in:
parent
07720b1cdd
commit
fb4cc5f423
1 changed files with 1 additions and 5 deletions
|
@ -632,10 +632,7 @@ std::unique_ptr<Sock> ConnectDirectly(const CService& dest, bool manual_connecti
|
||||||
|
|
||||||
std::unique_ptr<Sock> Proxy::Connect() const
|
std::unique_ptr<Sock> Proxy::Connect() const
|
||||||
{
|
{
|
||||||
if (!IsValid()) {
|
if (!IsValid()) return {};
|
||||||
LogPrintf("Cannot connect to invalid Proxy\n");
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!m_is_unix_socket) return ConnectDirectly(proxy, /*manual_connection=*/true);
|
if (!m_is_unix_socket) return ConnectDirectly(proxy, /*manual_connection=*/true);
|
||||||
|
|
||||||
|
@ -656,7 +653,6 @@ std::unique_ptr<Sock> Proxy::Connect() const
|
||||||
socklen_t len = sizeof(addrun);
|
socklen_t len = sizeof(addrun);
|
||||||
|
|
||||||
if(!ConnectToSocket(*sock, (struct sockaddr*)&addrun, len, path, /*manual_connection=*/true)) {
|
if(!ConnectToSocket(*sock, (struct sockaddr*)&addrun, len, path, /*manual_connection=*/true)) {
|
||||||
LogPrintf("Cannot connect to socket for %s\n", path);
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue