Explorar o código

Merge pull request #8454 from liamwhite/inaddr-any

core/debugger: allow remote connections
Morph %!s(int64=4) %!d(string=hai) anos
pai
achega
7582717c9d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/debugger/debugger.cpp

+ 1 - 1
src/core/debugger/debugger.cpp

@@ -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&) {});