flutter_sangfor 0.0.5 copy "flutter_sangfor: ^0.0.5" to clipboard
flutter_sangfor: ^0.0.5 copied to clipboard

Flutter integration for Sangfor aTrust and Easy Connect VPNs with an independently implemented protocol core

0.0.5 #

  • Fix the ohos ArkTS build: NetAddress.family is a plain number in the OpenHarmony SDK (no connection.NetFamily enum), RouteInfo.gateway is mandatory, and Index.ets imports must precede exports.

0.0.4 #

  • Add the HarmonyOS VpnExtensionAbility adapter (ohos module, SCM_RIGHTS TUN fd hand-off) and the OhosVpnDevice Dart adapter.

0.0.3 #

  • Fix an Android ANR: establish the tunnel from a background executor instead of blocking the platform thread while the service comes up.
  • Fall back to the underlying network's DNS resolvers when the server publishes none, and keep those resolvers outside the TUN routes.
  • Advertise the caller's loopback HTTP proxy as the VPN system proxy on Android 13+ so domain-published resources work in system mode.
  • Add a persistent notification with live speed, uptime, and a disconnect action; dismissed notifications recover via the delete intent.
  • Add AndroidVpnDevice.updateStats and disconnectRequests plumbing.
  • BREAKING CHANGE: rename the Android namespace from com.tsinbeilabs.flutter_sangfor to com.tsinbei.flutter_sangfor.

0.0.2 #

  • Add library-level dartdoc for the public API surface.
  • Update the package description to cover aTrust and Easy Connect.

0.0.1 #

  • Wire getState and disconnect across all declared platforms.
  • Validate connection arguments in the Dart method-channel adapter.
  • Return an explicit unsupported error until the protocol transport is ready.
  • Add the platform-neutral SangforAuthRequest transport boundary.
  • Add flutter_sangfor_atrust and flutter_sangfor_easy_connect package boundaries.
  • Add aTrust manifest and authentication-method discovery over HTTPS.
  • Add aTrust primary password exchange with server-provided RSA parameters.
  • Add aTrust MFA-step normalization and L3VPN resource parsing.
  • Add aTrust SMS verification and client-resource retrieval requests.
  • Add aTrust Cookie/SID persistence, environment reporting, and online info.
  • Add an end-to-end aTrust password and SMS login coordinator.
  • Add explicit TOTP, RADIUS, and generic code challenge callbacks.
  • Add access checks, enhanced-auth continuation, and current-device binding.
  • Add credential-free session snapshots and WAN/LAN node-group parsing.
  • Add a bounded incremental tunnel-frame boundary and node ordering.
  • Add the aTrust L3 tunnel with keep-alives and dual packet-stream demux.
  • Add the aTrust TCP tunnel channels with dialTcp for user-space sockets.
  • Add the EasyConnect login, conf parsing, TLS 1.1/1.2, token, RX/TX streams, and heartbeat keep-alive.
  • Add the userspace data plane: SangforTcpStream, SangforPacketTunnel, SangforPacketDevice, and the SangforTunnelRouter bidirectional pump with egress/ingress filters and cancellation-token support.
  • Add SangforSocks5Server (RFC 1928 no-auth CONNECT) with pipelined-request buffering, serialized sends, and cancellation-token support.
  • Add EasyConnect TCP-over-L3 synthesis: IPv4/TCP/UDP packet building, DNS query/parse over the tunnel, a retransmitting client TCP state machine with zero-window probing, and a dialTcp connector API.
  • Add platform TUN adapters: WintunDevice (Windows), TunDevice (Linux), AndroidVpnDevice (VpnService), UtunDevice (macOS), and IosVpnDevice (NetworkExtension packet tunnel with loopback IPC).
0
likes
160
points
345
downloads

Documentation

API reference

Publisher

verified publisherwhu.sb

Weekly Downloads

Flutter integration for Sangfor aTrust and Easy Connect VPNs with an independently implemented protocol core

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

ffi, flutter, plugin_platform_interface

More

Packages that depend on flutter_sangfor

Packages that implement flutter_sangfor