hashicorp / go-sockaddr

IP Address/UNIX Socket convenience functions for Go
Mozilla Public License 2.0
266 stars 53 forks source link

hasPowershell function is bugged #56

Open guifran001 opened 8 months ago

guifran001 commented 8 months ago

The logic is inverted in https://github.com/hashicorp/go-sockaddr/blob/081a518b8abca02d4190e80f206993a6cf19a425/route_info_windows.go#L64

So it relies on the very slow implementation even when powershell is present.

I'm opening a pr