Change delayed test URL

https://github.com/2dust/v2rayNG/issues/3110
This commit is contained in:
2dust
2024-05-14 10:53:15 +08:00
parent 3e7b211b17
commit 2504ec79ee
2 changed files with 2 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ object AppConfig {
const val PromotionUrl = "aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw="
const val GeoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/"
const val TgChannelUrl = "https://t.me/github_2dust"
const val DelayTestUrl = "https://www.google.com/generate_204"
const val DelayTestUrl = "https://www.gstatic.com/generate_204"
const val DNS_PROXY = "1.1.1.1"
const val DNS_DIRECT = "223.5.5.5"

View File

@@ -102,9 +102,7 @@ object SpeedtestUtil {
var conn: HttpURLConnection? = null
try {
val url = URL("https",
"www.google.com",
"/generate_204")
val url = URL(Utils.getDelayTestUrl())
conn = url.openConnection(
Proxy(Proxy.Type.HTTP,