We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00f4a71 commit 71516fbCopy full SHA for 71516fb
cmd/ifdata/cmd.go
@@ -66,7 +66,7 @@ func validArgs(_ *cobra.Command, args []string, _ string) ([]string, cobra.Shell
66
desc := make([]string, 0, len(addrs))
67
for _, addr := range addrs {
68
if addr, ok := addr.(*net.IPNet); ok && addr.IP.To4() != nil {
69
- desc = append(desc, addr.String())
+ desc = append(desc, addr.IP.String())
70
}
71
72
names = append(names, iface.Name+"\t"+strings.Join(desc, ","))
0 commit comments