diff options
author | Josh Gao <jmgao@google.com> | 2016-09-19 17:31:55 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-09-20 13:55:43 -0700 |
commit | 1099215e30c3b09dfa390c638a45487c43b2b1e1 (patch) | |
tree | 8038b651c02b071f20039fe7f1eb9d1fa4e15ec6 /libutils/RefBase.cpp | |
parent | 41595685482aec3ec4413c4e0bedf03c34a35a94 (diff) |
adb: parse tcp socket specs with base::ParseNetAddress.
libbase already has IPv6-aware address parsing, so use it instead of
adb's handrolled IPv4-only parsing.
Bug: http://b/31537253
Change-Id: I4e9ce56b55d7d02787c0fa67b724490bf49ce479
Test: mma && adb start-server && \
adb -L 'tcp:[::ffff:127.0.0.1]:5037' devices && \
adb -L 'tcp:localhost:5037' devices && \
adb -L 'tcp:127.0.0.1:5037' devices && \
adb -L 'tcp:5037' devices && \
$ANDROID_HOST_OUT/nativetest64/adb_test/adb_test
Diffstat (limited to 'libutils/RefBase.cpp')
0 files changed, 0 insertions, 0 deletions