tlslink / sslcon

Go implementation of the OpenConnect VPN Protocol for client side development. Engine for AnyLink Secure Client.
MIT License
42 stars 24 forks source link

Android support #11

Open lotux opened 6 months ago

lotux commented 6 months ago

I was wondering if android support can be added too, since android has don't allow direct access to tun device and only allow to read and write from FD provided by Android VPNService, in openconnect project, this is done by setup_tun_fd were it only take File Descriptor ID from caller

this will allow to use this project as a library in an Android application as well

itviewer commented 6 months ago

If you have enough time and patience, this is certainly possible. Please refer to the wireguard Android client, which is also based on the Go language and is used as a library for Java to call. It just needs some refactoring to be used as a library

shangjiyu commented 1 month ago

I've made flutter app demo

CleanShot 2024-10-12 at 12 54 43@2x