isConnectedToProxy static method
This class is used to check if the device is connected to a proxy.
Implementation
static Future<bool> isConnectedToProxy() async {
String? host;
try {
final settings = await NativeProxyReader.proxySetting;
host = settings.host;
} catch (e) {
// Make sure to handle the error appropriately in production code.
return false;
}
return host != null && isLocalCaptureIP(host);
}