use tun2
meh/rust-tun has bug on windows and may stuck on large traffic.
This commit is contained in:
@@ -88,7 +88,7 @@ class TauriVpnService : VpnService() {
|
||||
builder.addDnsServer(dns)
|
||||
|
||||
for (route in routes) {
|
||||
val ipParts = ipv4Addr.split("/")
|
||||
val ipParts = route.split("/")
|
||||
if (ipParts.size != 2) throw IllegalArgumentException("Invalid IP addr string")
|
||||
builder.addRoute(ipParts[0], ipParts[1].toInt())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user