Loading src/android/net/ip/IpClient.java +3 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.net.INetd; import android.net.IpPrefix; import android.net.LinkAddress; import android.net.LinkProperties; import android.net.Network; import android.net.ProvisioningConfigurationParcelable; import android.net.ProxyInfo; import android.net.ProxyInfoParcelable; Loading Loading @@ -1000,7 +999,9 @@ public class IpClient extends StateMachine { // mDhcpResults is never shared with any other owner so we don't have // to worry about concurrent modification. if (mDhcpResults != null) { for (RouteInfo route : mDhcpResults.getRoutes(mInterfaceName)) { final List<RouteInfo> routes = mDhcpResults.toStaticIpConfiguration().getRoutes(mInterfaceName); for (RouteInfo route : routes) { newLp.addRoute(route); } addAllReachableDnsServers(newLp, mDhcpResults.dnsServers); Loading src/com/android/server/connectivity/NetworkMonitor.java +5 −1 Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ import java.net.URL; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; Loading Loading @@ -1146,7 +1147,10 @@ public class NetworkMonitor extends StateMachine { return null; } return CaptivePortalProbeSpec.parseCaptivePortalProbeSpecs(settingsValue); final Collection<CaptivePortalProbeSpec> specs = CaptivePortalProbeSpec.parseCaptivePortalProbeSpecs(settingsValue); final CaptivePortalProbeSpec[] specsArray = new CaptivePortalProbeSpec[specs.size()]; return specs.toArray(specsArray); } catch (Exception e) { // Don't let a misconfiguration bootloop the system. Log.e(TAG, "Error parsing configured fallback probe specs", e); Loading Loading
src/android/net/ip/IpClient.java +3 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.net.INetd; import android.net.IpPrefix; import android.net.LinkAddress; import android.net.LinkProperties; import android.net.Network; import android.net.ProvisioningConfigurationParcelable; import android.net.ProxyInfo; import android.net.ProxyInfoParcelable; Loading Loading @@ -1000,7 +999,9 @@ public class IpClient extends StateMachine { // mDhcpResults is never shared with any other owner so we don't have // to worry about concurrent modification. if (mDhcpResults != null) { for (RouteInfo route : mDhcpResults.getRoutes(mInterfaceName)) { final List<RouteInfo> routes = mDhcpResults.toStaticIpConfiguration().getRoutes(mInterfaceName); for (RouteInfo route : routes) { newLp.addRoute(route); } addAllReachableDnsServers(newLp, mDhcpResults.dnsServers); Loading
src/com/android/server/connectivity/NetworkMonitor.java +5 −1 Original line number Diff line number Diff line Loading @@ -93,6 +93,7 @@ import java.net.URL; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; Loading Loading @@ -1146,7 +1147,10 @@ public class NetworkMonitor extends StateMachine { return null; } return CaptivePortalProbeSpec.parseCaptivePortalProbeSpecs(settingsValue); final Collection<CaptivePortalProbeSpec> specs = CaptivePortalProbeSpec.parseCaptivePortalProbeSpecs(settingsValue); final CaptivePortalProbeSpec[] specsArray = new CaptivePortalProbeSpec[specs.size()]; return specs.toArray(specsArray); } catch (Exception e) { // Don't let a misconfiguration bootloop the system. Log.e(TAG, "Error parsing configured fallback probe specs", e); Loading