flutter_vpn_detector 0.1.5 copy "flutter_vpn_detector: ^0.1.5" to clipboard
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() to contains() to reduce false positives
  • These changes significantly improve detection accuracy and reduce false positives

0.1.4 #

  • Fixed: Replaced kCFNetworkProxiesSOCKSEnable with 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.podspec to flutter_vpn_detector.podspec for 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 of com/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
  • 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/dev interface check
    • /proc/net/route routing table check
  • Simple API: VpnChecker.isVpnActive()
0
likes
150
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect if the device is using a VPN connection. Supports Android, iOS, macOS, Windows, and Linux.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_vpn_detector

Packages that implement flutter_vpn_detector