Merge "Explicitly check route type in NetworkDiagnostics"
This commit is contained in:
commit
1c2f79705f
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ public class NetworkDiagnostics {
|
|||
}
|
||||
|
||||
for (RouteInfo route : mLinkProperties.getRoutes()) {
|
||||
if (route.hasGateway()) {
|
||||
if (route.getType() == RouteInfo.RTN_UNICAST && route.hasGateway()) {
|
||||
InetAddress gateway = route.getGateway();
|
||||
prepareIcmpMeasurement(gateway);
|
||||
if (route.isIPv6Default()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue