mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
fix geoip:private
This commit is contained in:
parent
f274b134af
commit
151c110912
@ -108,7 +108,11 @@ fun SingBoxOptions.Rule_DefaultOptions.makeSingBoxRule(list: List<String>, isIP:
|
|||||||
list.forEach {
|
list.forEach {
|
||||||
if (isIP) {
|
if (isIP) {
|
||||||
if (it.startsWith("geoip:")) {
|
if (it.startsWith("geoip:")) {
|
||||||
rule_set.plusAssign(it)
|
if (it == "geoip:private") {
|
||||||
|
ip_is_private = true
|
||||||
|
} else {
|
||||||
|
rule_set.plusAssign(it)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ip_cidr.plusAssign(it)
|
ip_cidr.plusAssign(it)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user