fix byedpi blacklist (again)

This commit is contained in:
CherretGit
2025-08-28 01:08:27 +07:00
parent d754abf794
commit e6ffe78eb1

View File

@@ -229,9 +229,12 @@ class ByeDpiVpnService : VpnService() {
arg == "\$hostlist" && list.isEmpty() -> emptyList()
else -> listOf(arg)
}
}
else {
listOf("-H", list, "-An", arg).filter { it != "\$hostlist" }
} else {
if (list.isNotEmpty()) {
listOf("-H", list, "-An", arg).filter { it != "\$hostlist" }
} else {
listOf("-An", arg).filter { it != "\$hostlist" }
}
}
}
.toMutableList()