meh/rust-tun has bug on windows and may stuck on large traffic.
This commit is contained in:
sijie.sun authored and Sijie.Sun committed 2024-08-07 15:58:23 +08:00
1 parent 4a5e426730
commit d1293276ce
5 files changed
+86 -106

No files matched your search

@@ -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())
}