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:
parent
4a4ea2abe8
commit
a255b62d91
@ -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)}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user