mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-16 01:15:01 +03:00
Add DNS Hosts features (#8756)
This commit is contained in:
@@ -333,14 +333,9 @@ public partial class CoreConfigV2rayService
|
||||
}
|
||||
}
|
||||
|
||||
if (!simpleDNSItem.Hosts.IsNullOrEmpty())
|
||||
foreach (var kvp in Utils.ParseHostsToDictionary(simpleDNSItem.Hosts))
|
||||
{
|
||||
var userHostsMap = Utils.ParseHostsToDictionary(simpleDNSItem.Hosts);
|
||||
|
||||
foreach (var kvp in userHostsMap)
|
||||
{
|
||||
dnsItem.hosts[kvp.Key] = kvp.Value;
|
||||
}
|
||||
dnsItem.hosts[kvp.Key] = kvp.Value;
|
||||
}
|
||||
return await Task.FromResult(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user