Skip to content

rVPN v1.2.6

Choose a tag to compare

@creativebastard creativebastard released this 07 Jul 23:26
· 30 commits to main since this release

rVPN v1.2.6

Highlights

  • 7x iOS survival improvement: 70s → 505s under sustained 5G traffic
  • 43% archive size reduction: 69.82MB → 40.22MB
  • New crate architecture: rvpn-tls + rvpn-split-tunnel extracted from rvpn-client
  • Android fixes: DNS proxy, VirtualIp re-establishment, JNI params

Memory Optimization (iOS)

  • Replaced tungstenite with MinimalWebSocket parser (pre-allocated 16KB read buffer, zero per-frame alloc)
  • Zero-copy RatchetMessageRef eliminates per-frame Vec allocation on download path
  • VecPool reuses Vec buffers on upload path
  • Direct frame encoding (no clone per packet)
  • Feature-gated builtin IPs/domains from iOS binary (-5.81MB)
  • Excluded dns feature from iOS build (-4MB)
  • mimalloc allocator for aggressive page purging
  • 48KB Tokio worker stack
  • Batched packet allocation (one Bytes per WebSocket frame)
  • Swift write loop fix (autoreleasepool + batch writePackets)

Crate Extractions

  • rvpn-tls: TLS with Chrome fingerprint mimicry (boring/rustls/native-tls backends)
  • rvpn-split-tunnel: Split tunnel routing engine + DNS cache
  • rvpn-mobile depends only on rvpn-core, rvpn-tls, rvpn-split-tunnel

Runtime Fix

  • hoisted Tokio Runtime out of IosTunClient to prevent drop-panic during network flaps
  • Runtime stored in TUN_RUNTIME static, dropped on FFI thread (safe context)

Android Fixes

  • cfg guards for flow_connector TLS (Android uses rustls, not boring)
  • DoH TLS root store + local DNS probe answer
  • JNI params fix for rvpnNetworkChanged
  • VirtualIp re-establishment on server reassignment
  • builtin-ips/domains enabled (no jetsam limit on Android)

macOS Fixes

  • IOKit power hook + health-check timer for idle recovery
  • Batch writePackets + autoreleasepool in write loop

Build

  • Version 1.2.6 across all platforms
  • Fat LTO for maximum dead code elimination
  • Removed Windows from build-release (not a supported platform)
  • R2 upload script for binary distribution
  • Public repo sync includes rvpn-tls + rvpn-split-tunnel

Breaking Changes

  • Windows builds removed (not a supported platform)