1
0
Fork 0
forked from suyu/suyu

core/debugger: allow remote connections

This commit is contained in:
Liam 2022-06-12 11:50:50 -04:00
parent 7ea78699a1
commit fb4b507ba4

View file

@ -96,7 +96,7 @@ private:
connection_thread = std::jthread([&, port](std::stop_token stop_token) {
try {
// 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};
acceptor.async_accept(client_socket, [](const auto&) {});