From a255b62d91e0f774e662e290567a032b652ad2e3 Mon Sep 17 00:00:00 2001 From: Mike Lloyd Date: Mon, 11 Jun 2018 09:46:28 -0600 Subject: [PATCH] fixed bad type. Signed-off-by: Mike Lloyd --- security/dns_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)} }