flutter_sangfor 0.0.5
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.updateStatsanddisconnectRequestsplumbing. - BREAKING CHANGE: rename the Android namespace from
com.tsinbeilabs.flutter_sangfortocom.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
getStateanddisconnectacross 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
SangforAuthRequesttransport boundary. - Add
flutter_sangfor_atrustandflutter_sangfor_easy_connectpackage 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
dialTcpfor 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 theSangforTunnelRouterbidirectional 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
dialTcpconnector API. - Add platform TUN adapters:
WintunDevice(Windows),TunDevice(Linux),AndroidVpnDevice(VpnService),UtunDevice(macOS), andIosVpnDevice(NetworkExtension packet tunnel with loopback IPC).