addSubnetToBypass method
Add subnet to bypass list (will not use VPN)
subnet - subnet in CIDR notation (e.g., "192.168.1.0/24", "10.0.0.0/8")
Implementation
@override
Future<bool> addSubnetToBypass(String subnet) async {
try {
final result = await methodChannel.invokeMethod<bool>('addSubnetToBypass', {
'subnet': subnet,
});
return result ?? false;
} catch (e) {
debugPrint('Error adding subnet to bypass: $e');
return false;
}
}