Skip to content

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

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

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

Conversation

@Cppuccino
Copy link
Copy Markdown
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.

Comment thread sources/common/cli/cli_pool.cpp
Comment thread sources/common/config.hpp Outdated
Comment thread sources/network/network.cpp Outdated
};


auto endpoints = resolver.resolve(host, std::to_string(port), ec);
Copy link
Copy Markdown
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 =

Comment thread sources/network/network.cpp Outdated
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
Copy Markdown
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)

Comment thread sources/network/network.cpp Outdated

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

if (ec || endpoints.begin() == endpoints.end())
Copy link
Copy Markdown
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)

Comment thread sources/network/network.cpp Outdated
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
Copy Markdown
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 =

Comment thread sources/network/network_callback.cpp Outdated
{
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
Copy Markdown
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
Copy Markdown
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 ;)

Comment thread sources/common/config.cpp
Comment thread sources/common/config.cpp Outdated

auto const socksIp{ cli.getSocksIp() };

mining.socksIp = socksIp;
Copy link
Copy Markdown
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