Control: tags -1 +patch

If I am not mistaken, the dangerous default behavior is encoded into the
build_local_name() function and the attached patch should fix things.

Cheers,
-Hilko

diff --git a/core/adb/adb.c b/core/adb/adb.c
index 399d43a..d3e87c7 100644
--- a/core/adb/adb.c
+++ b/core/adb/adb.c
@@ -1151,5 +1151,5 @@ int launch_server(int server_port)
 void build_local_name(char* target_str, size_t target_size, int server_port)
 {
-  snprintf(target_str, target_size, "tcp:%d", server_port);
+  snprintf(target_str, target_size, "local:%d", server_port);
 }

Reply via email to