diff options
| author | Josh Gao <jmgao@google.com> | 2017-04-12 13:57:06 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2017-04-12 16:07:49 -0700 |
| commit | 46de1d7f03b7debfd14ccf77a6e63fa2e66f9f04 (patch) | |
| tree | 6bca7d59c50c68827f625cdd0671672eb6acfd6c /trusty/coverage/coverage.cpp | |
| parent | ebc87c98e35327e7403ed767c935a8e6a02b6f03 (diff) | |
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 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
