修复安卓部分抓包失败问题

This commit is contained in:
wanghongen
2023-10-23 02:00:08 +08:00
parent b138e3f6bc
commit db874790a3
7 changed files with 26 additions and 15 deletions

View File

@@ -47,7 +47,7 @@ class VpnServicePlugin : AndroidFlutterPlugin() {
* 启动vpn服务
*/
private fun startVpn(host: String, port: Int, allowApps: ArrayList<String>?) {
Log.i("com.network.proxy", "startVpn $allowApps")
Log.i("com.network.proxy", "startVpn $host:$port $allowApps")
val intent = Intent(activity, ProxyVpnService::class.java)
intent.putExtra(ProxyVpnService.ProxyHost, host)
intent.putExtra(ProxyVpnService.ProxyPort, port)