Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make adb server listen on all NICs #5

Open
prife opened this issue Jul 2, 2024 · 0 comments
Open

make adb server listen on all NICs #5

prife opened this issue Jul 2, 2024 · 0 comments

Comments

@prife
Copy link
Owner

prife commented Jul 2, 2024

diff --git a/src/socket_spec.cpp b/src/socket_spec.cpp
index 6758c18..d682bad 100644
--- a/src/socket_spec.cpp
+++ b/src/socket_spec.cpp
@@ -325,7 +325,7 @@ int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_
 #endif
             result = network_inaddr_any_server(port, SOCK_STREAM, error);
         } else if (tcp_host_is_local(hostname)) {
-            result = network_loopback_server(port, SOCK_STREAM, error, true);
+            result = network_inaddr_any_server(port, SOCK_STREAM, error);
         } else if (hostname == "::1") {
             result = network_loopback_server(port, SOCK_STREAM, error, false);
         } else {
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

No branches or pull requests

1 participant