mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-10 04:36:14 -08:00
use tun2
meh/rust-tun has bug on windows and may stuck on large traffic.
This commit is contained in:
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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user