flutter_vpn_detector 0.1.5
flutter_vpn_detector: ^0.1.5 copied to clipboard
A Flutter plugin to detect if the device is using a VPN connection. Supports Android, iOS, macOS, Windows, and Linux.
0.1.5 #
- Fixed: Removed direct network interface check (
isUsingVpnInterface) that caused false positives on iOS/macOS - Fixed: Changed proxy check to only use Int comparison (removed NSNumber.boolValue check)
- Fixed: Simplified key existence check to only examine top-level keys (removed recursive getAllSubKeys)
- Fixed: Changed scoped network settings matching from
lowercased().contains()tocontains()to reduce false positives - These changes significantly improve detection accuracy and reduce false positives
0.1.4 #
- Fixed: Replaced
kCFNetworkProxiesSOCKSEnablewith string constant "SOCKSEnable" for iOS/macOS compatibility - This fixes the Swift compiler error: "'kCFNetworkProxiesSOCKSEnable' is unavailable in iOS"
0.1.3 #
- Fixed: Renamed podspec files from
vpn_checker.podspectoflutter_vpn_detector.podspecfor iOS and macOS - This fixes the CocoaPods error: "No podspec found for
flutter_vpn_detector"
0.1.2 #
- Fixed: Corrected Windows and Linux plugin configurations to match package name
- Windows: Updated namespace, class names, and file structure to
flutter_vpn_detector - Linux: Updated struct names, function prefixes, and file structure to
flutter_vpn_detector - All platforms now have consistent naming and configuration
0.1.1 #
- Fixed: Corrected Android plugin file directory structure to match package name
- The Android plugin file is now correctly located at
com/tikoua/flutter_vpn_detector/instead ofcom/tikoua/flutter_vpn_checker/
0.1.0 #
- Initial release
- Support for Android VPN detection
- ConnectivityManager API check (Android 6.0+)
- Network interface name check
- Routing table check
- Support for iOS VPN/Proxy detection
- Direct network interface check using
getifaddrs() - URL-specific proxy check
- HTTP/HTTPS/SOCKS proxy detection
- Scoped network settings check
- Recursive proxy key detection
- Direct network interface check using
- Support for macOS VPN detection (same as iOS)
- Support for Windows VPN detection
- Network adapter description check
- Tunnel interface detection
- Support for Linux VPN detection
/proc/net/devinterface check/proc/net/routerouting table check
- Simple API:
VpnChecker.isVpnActive()