Skip to content

fix: remove all stubs/delays, implement real kill-switch, WireGuard t…#8

Open
0xgetz wants to merge 1 commit intomainfrom
nebula/fix-networking
Open

fix: remove all stubs/delays, implement real kill-switch, WireGuard t…#8
0xgetz wants to merge 1 commit intomainfrom
nebula/fix-networking

Conversation

@0xgetz
Copy link
Copy Markdown
Owner

@0xgetz 0xgetz commented Apr 9, 2026

…un fd, SSH sockets, V2Ray process, AES-GCM, EVP_BytesToKey

  • AeroVpnService: activateKillSwitch uses VpnService.Builder.setBlocking(true) + real blocking interface; removed delay(2000) from network monitor
  • WireGuardProtocol: establishTunnel uses vpnServiceBuilder.establish() for real tun fd instead of hashCode stub; stopWireGuardTunnel closes fd instead of delay(500)
  • SSHProtocol: all 4 transport modes (direct/WS/SSL/proxy) now open real TCP/SSL sockets; removed 4x delay(1500) and Any() stubs; closeSSHSession closes Closeable
  • V2RayProtocol: startV2RayCore writes config JSON and launches libv2ray.so process; stopV2RayCore kills process; removed delay(2000)/delay(500)
  • ShadowsocksProtocol: startShadowsocksProxy launches libsslocal.so process; generateKey uses EVP_BytesToKey-compatible MD5 KDF; removed delay(1000)/delay(300)
  • UdpTunnelProtocol: decryptUdpData/encryptUdpData use AES-GCM with SHA-256 key derivation instead of XOR; forwardToVpnInterface writes to real tun OutputStream; removed XOR stub

…un fd, SSH sockets, V2Ray process, AES-GCM, EVP_BytesToKey

- AeroVpnService: activateKillSwitch uses VpnService.Builder.setBlocking(true) + real blocking interface; removed delay(2000) from network monitor
- WireGuardProtocol: establishTunnel uses vpnServiceBuilder.establish() for real tun fd instead of hashCode stub; stopWireGuardTunnel closes fd instead of delay(500)
- SSHProtocol: all 4 transport modes (direct/WS/SSL/proxy) now open real TCP/SSL sockets; removed 4x delay(1500) and Any() stubs; closeSSHSession closes Closeable
- V2RayProtocol: startV2RayCore writes config JSON and launches libv2ray.so process; stopV2RayCore kills process; removed delay(2000)/delay(500)
- ShadowsocksProtocol: startShadowsocksProxy launches libsslocal.so process; generateKey uses EVP_BytesToKey-compatible MD5 KDF; removed delay(1000)/delay(300)
- UdpTunnelProtocol: decryptUdpData/encryptUdpData use AES-GCM with SHA-256 key derivation instead of XOR; forwardToVpnInterface writes to real tun OutputStream; removed XOR stub
0xgetz added a commit that referenced this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant