hashicorp/go-sockaddr

Interface name parsing fails for names with spaces

Closed this issue · 0 comments

Because the regex in

ifNameRE *regexp.Regexp = regexp.MustCompile(`^Ethernet adapter ([^\s:]+):`)
breaks the capture group on spaces any interface name (Ethernet 2, for example) will fail to be extracted from the ipconfig output.