我尝试使用这个软件包制作VPN连接应用,但它不支持类似于(L2TP或PPTP)的连接类型。
https://pub.dev/packages/flutter_vpn
我在源代码中找到了这段代码,看起来像是PPTP连接。
/// Use given credentials to connect VPN (ikev2-eap).
/// This will create a background VPN service.
static Future<Null> simpleConnect(
String address, String username, String password) async {
await _channel.invokeMethod('connect',
{'address': address, 'username': username, 'password': password});
}