fix android (#531)

This commit is contained in:
Sijie.Sun authored and GitHub committed 2024-12-23 19:38:32 -05:00
1 parent f3de00be37
commit 2f4a097787
17 files changed
+147 -159

No files matched your search

@@ -89,7 +89,7 @@ class TauriVpnService : VpnService() {
for (route in routes) {
val ipParts = route.split("/")
if (ipParts.size != 2) throw IllegalArgumentException("Invalid IP addr string")
if (ipParts.size != 2) throw IllegalArgumentException("Invalid route cidr string")
builder.addRoute(ipParts[0], ipParts[1].toInt())
}