Fixed normal mode cannot resolve
This commit is contained in:
parent
40c0e755b3
commit
b3d99d1b16
@ -193,11 +193,18 @@ public class DaedalusVpnService extends VpnService implements Runnable {
|
|||||||
statisticQuery = Daedalus.getPrefs().getBoolean("settings_count_query_times", false);
|
statisticQuery = Daedalus.getPrefs().getBoolean("settings_count_query_times", false);
|
||||||
Log.d(TAG, "tun0 add " + format + " pServ " + primaryServer + " sServ " + secondaryServer);
|
Log.d(TAG, "tun0 add " + format + " pServ " + primaryServer + " sServ " + secondaryServer);
|
||||||
|
|
||||||
|
String aliasPrimary;
|
||||||
|
String aliasSecondary;
|
||||||
|
if (advanced) {
|
||||||
dnsServers = new HashMap<>();
|
dnsServers = new HashMap<>();
|
||||||
String aliasPrimary = String.format(format, dnsServers.size() + 1);
|
aliasPrimary = String.format(format, dnsServers.size() + 1);
|
||||||
dnsServers.put(aliasPrimary, primaryServer);
|
dnsServers.put(aliasPrimary, primaryServer);
|
||||||
String aliasSecondary = String.format(format, dnsServers.size() + 1);
|
aliasSecondary = String.format(format, dnsServers.size() + 1);
|
||||||
dnsServers.put(aliasSecondary, secondaryServer);
|
dnsServers.put(aliasSecondary, secondaryServer);
|
||||||
|
} else {
|
||||||
|
aliasPrimary = primaryServer;
|
||||||
|
aliasSecondary = secondaryServer;
|
||||||
|
}
|
||||||
|
|
||||||
Inet4Address primaryDNSServer = InetAddressUtil.ipv4From(aliasPrimary);
|
Inet4Address primaryDNSServer = InetAddressUtil.ipv4From(aliasPrimary);
|
||||||
Inet4Address secondaryDNSServer = InetAddressUtil.ipv4From(aliasSecondary);
|
Inet4Address secondaryDNSServer = InetAddressUtil.ipv4From(aliasSecondary);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user