mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 10:56:13 -08:00
fix android route and peer conn disconn bug
1. android correctly add route 2. use mock nic ctx to consume packets
This commit is contained in:
1 parent
fdc2755291
commit
4a5e426730
2 files changed
+24
-9
No files matched your search
@@ -90,7 +90,7 @@ class TauriVpnService : VpnService() {
|
||||
for (route in routes) {
|
||||
val ipParts = ipv4Addr.split("/")
|
||||
if (ipParts.size != 2) throw IllegalArgumentException("Invalid IP addr string")
|
||||
builder.addAddress(ipParts[0], ipParts[1].toInt())
|
||||
builder.addRoute(ipParts[0], ipParts[1].toInt())
|
||||
}
|
||||
|
||||
for (app in disallowedApplications) {
|
||||
|
||||
Reference in new issue
Block a user