mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
@@ -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)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user