Skip to content

Commit

Permalink
Update NetworkUtil.kt
Browse files Browse the repository at this point in the history
支持中国大陆
  • Loading branch information
ldm0206 authored Oct 12, 2024
1 parent 075cb3f commit 9c0fbce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/kotlin/dev/aaa1115910/bv/util/NetworkUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ object NetworkUtil {
.lines()
.filter { it.isNotBlank() }
.associate { with(it.split("=")) { this[0] to this[1] } }

require(networkCheckResult["loc"] != "CN") { "BV doesn't support use in mainland China" }
false
}.getOrDefault(true)
}
Expand All @@ -57,4 +55,4 @@ object NetworkUtil {
deferreds.forEach { it.cancel() }
}
}
}
}

0 comments on commit 9c0fbce

Please sign in to comment.