diff options
author | Josh Gao | 2017-04-12 15:57:06 -0500 |
---|---|---|
committer | Josh Gao | 2017-04-12 18:07:49 -0500 |
commit | 46de1d7f03b7debfd14ccf77a6e63fa2e66f9f04 (patch) | |
tree | 6bca7d59c50c68827f625cdd0671672eb6acfd6c /libcutils/Android.bp | |
parent | ebc87c98e35327e7403ed767c935a8e6a02b6f03 (diff) | |
download | platform-system-core-46de1d7f03b7debfd14ccf77a6e63fa2e66f9f04.tar.gz platform-system-core-46de1d7f03b7debfd14ccf77a6e63fa2e66f9f04.tar.xz platform-system-core-46de1d7f03b7debfd14ccf77a6e63fa2e66f9f04.zip |
adb: don't try to resolve 'localhost'
Misconfigured systems can have localhost pointing to an address that
isn't 127.0.0.1 or ::1.
adb is the only caller of the libcutils socket_loopback functions, so
move them into adb and switch the implementations over to using
INADDR_LOOPBACK and in6addr_loopback, instead of resolving 'localhost'
when connecting.
Bug: http://b/37282612
Test: `killall adb; adb shell`
Test: `killall adb; ip addr del 127.0.0.1/8 dev lo; adb shell`
Change-Id: I01c1885f1d9757ad0f7b353dd04b4d1f057741c8
Diffstat (limited to 'libcutils/Android.bp')
-rw-r--r-- | libcutils/Android.bp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libcutils/Android.bp b/libcutils/Android.bp index f668f18e5..bb82f4da3 100644 --- a/libcutils/Android.bp +++ b/libcutils/Android.bp | |||
@@ -24,7 +24,6 @@ libcutils_nonwindows_sources = [ | |||
24 | "socket_inaddr_any_server_unix.c", | 24 | "socket_inaddr_any_server_unix.c", |
25 | "socket_local_client_unix.c", | 25 | "socket_local_client_unix.c", |
26 | "socket_local_server_unix.c", | 26 | "socket_local_server_unix.c", |
27 | "socket_loopback_server_unix.c", | ||
28 | "socket_network_client_unix.c", | 27 | "socket_network_client_unix.c", |
29 | "sockets_unix.cpp", | 28 | "sockets_unix.cpp", |
30 | "str_parms.c", | 29 | "str_parms.c", |