diff --git a/security/dns_windows.go b/security/dns_windows.go index 53f9e748..8e3db0e8 100644 --- a/security/dns_windows.go +++ b/security/dns_windows.go @@ -7,7 +7,7 @@ import ( ) -func DnsServers() string { +func DnsServers() []string { cmd := exec.Command("powershell.exe", "Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses") - return wtf.ExecuteCommand(cmd) + return []string{wtf.ExecuteCommand(cmd)} }