mirror of
https://github.com/2dust/v2rayN.git
synced 2026-03-12 19:33:01 +00:00
Ignore json file extensions in IsDomain
This commit is contained in:
parent
6b4ae5a386
commit
d56e896f07
1 changed files with 7 additions and 0 deletions
|
|
@ -497,6 +497,13 @@ public class Utils
|
|||
return false;
|
||||
}
|
||||
|
||||
var ext = Path.GetExtension(domain);
|
||||
if (ext.IsNotEmpty()
|
||||
&& ext[1..].ToLowerInvariant() is "json" or "txt" or "xml" or "cfg" or "ini" or "log" or "yaml" or "yml" or "toml")
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return Uri.CheckHostName(domain) == UriHostNameType.Dns;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue