1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

fixed bad type.

Signed-off-by: Mike Lloyd <mike@reboot3times.org>
This commit is contained in:
Mike Lloyd 2018-06-11 09:46:28 -06:00
parent 4a4ea2abe8
commit a255b62d91

View File

@ -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)}
}