Debug info: added MX check

This commit is contained in:
M66B 2024-01-27 22:14:34 +01:00
parent 9a3daf0065
commit dcb424a5eb
1 changed files with 9 additions and 0 deletions

View File

@ -1094,6 +1094,15 @@ public class DebugHelper {
boolean[] has46 = ConnectionHelper.has46(context);
boolean mx;
try {
DnsHelper.checkMx(context, new Address[]{Log.myAddress()});
mx = true;
} catch (Throwable ignored) {
mx = false;
}
size += write(os, "MX=" + mx + "\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, "Data saving=" + ConnectionHelper.isDataSaving(context) + "\r\n");