是否可以使用Flutter和Dart制作Vpn应用

时间:2019-07-31 06:19:44

标签: android ios flutter dart vpn

我尝试使用此软件包制作VPN连接应用,但它不支持诸如L2TP或PPTP之类的连接类型

https://pub.dev/packages/flutter_vpn

2 个答案:

答案 0 :(得分:0)

我在源代码上发现了代码,就像是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});
  }

答案 1 :(得分:0)

是的,我有可能在GitHub上找到了这个库,https://github.com/X-dea/flutter_vpn