mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-29 16:44:59 +03:00
Add DNS features (#8729)
* Simplify DNS Settings * Add ParallelQuery and ServeStale features * Fix * Add Tips * Simplify Predefined Hosts
This commit is contained in:
@@ -462,6 +462,18 @@ public class Utils
|
||||
return (domain, port);
|
||||
}
|
||||
|
||||
public static string? DomainStrategy4Sbox(string? strategy)
|
||||
{
|
||||
return strategy switch
|
||||
{
|
||||
not null when strategy.StartsWith("UseIPv4") => "prefer_ipv4",
|
||||
not null when strategy.StartsWith("UseIPv6") => "prefer_ipv6",
|
||||
not null when strategy.StartsWith("ForceIPv4") => "ipv4_only",
|
||||
not null when strategy.StartsWith("ForceIPv6") => "ipv6_only",
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
|
||||
#endregion Conversion Functions
|
||||
|
||||
#region Data Checks
|
||||
|
||||
Reference in New Issue
Block a user