We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81fec4a + d2fd3bf commit 35a157dCopy full SHA for 35a157d
package/android/src/main/java/com/outlinevpn/VpnTunnel.java
@@ -78,11 +78,7 @@ public synchronized boolean establishVpn() {
78
LOG.info("Establishing the VPN.");
79
try {
80
dnsResolverAddress = selectDnsResolverAddress();
81
- String dnsAddress = "1.1.1.1";
82
- try{
83
- JSONObject getVPNConfig = vpnService.getVPNConfig();
84
- dnsAddress = getVPNConfig.getString("host");
85
- }catch (JSONException e){}
+ String dnsAddress = "1.1.1.1"; // Default DNS if selection fails.
86
VpnService.Builder builder =
87
vpnService.newBuilder()
88
.setSession(vpnService.getApplicationName())
0 commit comments