Skip to content

Commit

Permalink
fixed bad type.
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Lloyd <mike@reboot3times.org>
  • Loading branch information
siennathesane committed Jun 11, 2018
1 parent 4a4ea2a commit a255b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/dns_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
}

0 comments on commit a255b62

Please sign in to comment.