Allow private IP to use HTTP protocol
https://github.com/2dust/v2rayNG/issues/4460
This commit is contained in:
@@ -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)
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user