diff options
| author | tobtoht <tob@featherwallet.org> | 2026-04-20 07:49:04 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-04-20 07:49:04 +0000 |
| commit | 8b6be66bef8cce6e074074b7329be9509b93dbb8 (patch) | |
| tree | 6dee62eec590447f49e6a29d649c294f4757a2a4 /src/net/http.cpp | |
| parent | e75125a30b1f70e74eded99d3fc4f3e98938c6d5 (diff) | |
| parent | ce5437f0677966c15d2946bc7c068975aa6bfd83 (diff) | |
| download | monzero-core-8b6be66bef8cce6e074074b7329be9509b93dbb8.tar.gz monzero-core-8b6be66bef8cce6e074074b7329be9509b93dbb8.tar.xz monzero-core-8b6be66bef8cce6e074074b7329be9509b93dbb8.zip | |
Merge pull request #10411
ce5437f Add Socks v5 support to daemon and wallet (Lee *!* Clagett)
Diffstat (limited to 'src/net/http.cpp')
| -rw-r--r-- | src/net/http.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/http.cpp b/src/net/http.cpp index c0ed3d430..ed7d5a889 100644 --- a/src/net/http.cpp +++ b/src/net/http.cpp @@ -45,15 +45,17 @@ bool client::set_proxy(const std::string &address) } else { - const auto endpoint = get_tcp_endpoint(address); + auto endpoint = socks::endpoint::get(address); if (!endpoint) { - auto always_fail = net::socks::connector{boost::asio::ip::tcp::endpoint()}; + auto always_fail = net::socks::connector{}; set_connector(always_fail); } else { - set_connector(net::socks::connector{*endpoint}); + set_connector( + net::socks::connector{std::make_shared<socks::endpoint>(std::move(*endpoint))} + ); } } |
