Skip to content

Updated to Boost 1.90 & Added Socks5 Proxy address parameter.#113

Merged
luminousmining merged 14 commits intoluminousmining:mainfrom
Cppuccino:dev
Feb 17, 2026
Merged

Updated to Boost 1.90 & Added Socks5 Proxy address parameter.#113
luminousmining merged 14 commits intoluminousmining:mainfrom
Cppuccino:dev

Conversation

@Cppuccino
Copy link
Contributor

I've only tested this with a local ubuntu sock5 proxy server using Dante. It works. I decide to add an additional proxy ip parameter so it made it easier to connect to the VM.

};


auto endpoints = resolver.resolve(host, std::to_string(port), ec);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use {} to assign instead of =

boost_query query( host, std::to_string(port) );
boost_endpoint socksEndpoint{ {}, static_cast<boost::asio::ip::port_type>(config.mining.socksPort) };

boost::asio::ip::address_v4 addr = boost::asio::ip::make_address_v4(config.mining.socksIp);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use {} to assign instead of =
Add align column (indent)


auto endpoints = resolver.resolve(host, std::to_string(port), ec);

if (ec || endpoints.begin() == endpoints.end())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (ec) is not explicit you need explicit compare example if (boost_error::success == ec)

boost_query query{ host, std::to_string(port) };
auto endpoints{ resolver.resolve(query, ec) };

auto endpoints = resolver.resolve(host,std::to_string(port),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use {} to assign instead of =

{
std::string msg;
msg.assign(boost::asio::buffer_cast<const char*>(recvBuffer.data()), bytes);
msg.assign(boost::asio::buffers_begin(recvBuffer.data()),boost::asio::buffers_begin(recvBuffer.data()) + bytes);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add space after ,

}
return 9050u;
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 empty line between functions ;)


auto const socksIp{ cli.getSocksIp() };

mining.socksIp = socksIp;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check if socksIp is not empty, if value is empty logErr() a message and assin with default value.

@luminousmining luminousmining merged commit 9fedd18 into luminousmining:main Feb 17, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants