mirror of https://github.com/M66B/FairEmail.git
Added DNS to debug info
This commit is contained in:
parent
4478c646b0
commit
aa220fa0a6
|
@ -1102,6 +1102,11 @@ public class DebugHelper {
|
||||||
mx = false;
|
mx = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
boolean dns_custom = prefs.getBoolean("dns_custom", false);
|
||||||
|
|
||||||
|
size += write(os, "DNS custom=" + dns_custom +
|
||||||
|
" servers=" + TextUtils.join(", ", DnsHelper.getDnsServers(context)) + "\r\n");
|
||||||
size += write(os, "MX=" + mx + "\r\n");
|
size += write(os, "MX=" + mx + "\r\n");
|
||||||
size += write(os, "Has IPv4=" + has46[0] + " IPv6=" + has46[1] + "\r\n");
|
size += write(os, "Has IPv4=" + has46[0] + " IPv6=" + has46[1] + "\r\n");
|
||||||
size += write(os, "VPN active=" + ConnectionHelper.vpnActive(context) + "\r\n");
|
size += write(os, "VPN active=" + ConnectionHelper.vpnActive(context) + "\r\n");
|
||||||
|
@ -1115,7 +1120,6 @@ public class DebugHelper {
|
||||||
NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted() + "\r\n");
|
NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted() + "\r\n");
|
||||||
size += write(os, "\r\n");
|
size += write(os, "\r\n");
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
||||||
int timeout = prefs.getInt("timeout", EmailService.DEFAULT_CONNECT_TIMEOUT);
|
int timeout = prefs.getInt("timeout", EmailService.DEFAULT_CONNECT_TIMEOUT);
|
||||||
boolean metered = prefs.getBoolean("metered", true);
|
boolean metered = prefs.getBoolean("metered", true);
|
||||||
int download = prefs.getInt("download", MessageHelper.DEFAULT_DOWNLOAD_SIZE);
|
int download = prefs.getInt("download", MessageHelper.DEFAULT_DOWNLOAD_SIZE);
|
||||||
|
|
|
@ -372,7 +372,7 @@ public class DnsHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<String> getDnsServers(Context context) {
|
static List<String> getDnsServers(Context context) {
|
||||||
List<String> result = new ArrayList<>(_getDnsServers(context));
|
List<String> result = new ArrayList<>(_getDnsServers(context));
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
|
Loading…
Reference in New Issue