Remove wrong and unnecessary check for setDnsForwarders
inet_pton could not parse link local address with zone id.
Additionally, setDnsForwarders has already used getaddrinfo for address parsing.
Bug: 129474773
Test: built, flashed, booted
system/netd/tests/runtests.sh passes
Change-Id: Iea8ccd234e81ff6ddd863d920033559d436bf0d0
diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp
index 6d2cb81..c656e1c 100644
--- a/tests/binder_test.cpp
+++ b/tests/binder_test.cpp
@@ -2085,7 +2085,8 @@
TEST_F(BinderTest, TetherDnsSetList) {
// TODO: verify if dnsmasq update dns successfully
- std::vector<std::string> testDnsAddrs = {"192.168.1.37", "213.137.100.3"};
+ std::vector<std::string> testDnsAddrs = {"192.168.1.37", "213.137.100.3",
+ "fe80::1%" + sTun.name()};
binder::Status status = mNetd->tetherDnsSet(TEST_NETID1, testDnsAddrs);
EXPECT_TRUE(status.isOk()) << status.exceptionMessage();