forked from mirror/monocles_chat_clean
VPN after active
(cherry picked from commit 0ba2469e12c1825a63d9aa449268d8d678000153)
This commit is contained in:
parent
724bfc508e
commit
26bff2289c
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ public class AndroidUsingLinkProperties extends AbstractDnsServerLookupMechanism
|
|||
final boolean isVpn = networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_VPN;
|
||||
final List<String> servers = getIPv4First(linkProperties.getDnsServers());
|
||||
if (hasDefaultRoute(linkProperties) || isActiveNetwork || activeNetwork == null || isVpn) {
|
||||
if (isActiveNetwork || isVpn) networkServers.addAll(servers);
|
||||
if (isActiveNetwork) networkServers.addAll(0, servers);
|
||||
if (isVpn) networkServers.addAll(servers);
|
||||
otherServers.addAll(servers);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue