mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
core/debugger: allow remote connections
This commit is contained in:
parent
7ea78699a1
commit
fb4b507ba4
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ private:
|
||||||
connection_thread = std::jthread([&, port](std::stop_token stop_token) {
|
connection_thread = std::jthread([&, port](std::stop_token stop_token) {
|
||||||
try {
|
try {
|
||||||
// Initialize the listening socket and accept a new client.
|
// Initialize the listening socket and accept a new client.
|
||||||
tcp::endpoint endpoint{boost::asio::ip::address_v4::loopback(), port};
|
tcp::endpoint endpoint{boost::asio::ip::address_v4::any(), port};
|
||||||
tcp::acceptor acceptor{io_context, endpoint};
|
tcp::acceptor acceptor{io_context, endpoint};
|
||||||
|
|
||||||
acceptor.async_accept(client_socket, [](const auto&) {});
|
acceptor.async_accept(client_socket, [](const auto&) {});
|
||||||
|
|
Loading…
Reference in a new issue