mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Bug fix for processing exclude routes for older android versions
This commit is contained in:
@@ -128,7 +128,8 @@ open class ProtocolConfig protected constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun processExcludedRoutes() {
|
private fun processExcludedRoutes() {
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU && excludedRoutes.isNotEmpty()) {
|
||||||
|
// todo: rewrite, taking into account the current routes
|
||||||
// for older versions of Android, build a list of subnets without excluded routes
|
// for older versions of Android, build a list of subnets without excluded routes
|
||||||
// and add them to routes
|
// and add them to routes
|
||||||
val ipRangeSet = IpRangeSet()
|
val ipRangeSet = IpRangeSet()
|
||||||
|
|||||||
Reference in New Issue
Block a user