Allow private IP to use HTTP protocol

https://github.com/2dust/v2rayNG/issues/4460
This commit is contained in:
2dust
2025-04-07 16:00:56 +08:00
parent b4c833b039
commit 678b3cb505
5 changed files with 80 additions and 7 deletions
@@ -417,6 +417,9 @@ object AngConfigManager {
if (!Utils.isValidUrl(url)) {
return 0
}
if (!Utils.isValidSubUrl(url)) {
return 0
}
Log.i(AppConfig.TAG, url)
var configText = try {
@@ -430,7 +433,7 @@ object AngConfigManager {
configText = try {
HttpUtil.getUrlContentWithUserAgent(url)
} catch (e: Exception) {
Log.e(AppConfig.TAG, "Failed to get URL content with user agent", e)
Log.e(AppConfig.TAG, "Update subscription: Failed to get URL content with user agent", e)
""
}
}