refactor: builder dns string and Mode FileString

This commit is contained in:
ChsBuffer
2020-10-22 12:23:23 +08:00
parent 421b35a797
commit 2ad394dfde
3 changed files with 13 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ namespace Netch.Controllers
{
if (Global.Settings.TUNTAP.DNS.Any())
{
dns = Global.Settings.TUNTAP.DNS.Aggregate((current, ip) => $"{current},{ip}");
dns = string.Join(",", Global.Settings.TUNTAP.DNS);
}
else
{