Fix /proc/net/dev/ interface name handling

* Allow any character (UTF-8) for Linux interface names.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2018-04-18 12:48:27 +02:00
commit b10ca77680
Failed to extract signature
5 changed files with 72 additions and 2 deletions

View file

@ -27,7 +27,7 @@ import (
)
var (
procNetDevInterfaceRE = regexp.MustCompile(`^([\w:]+): *(.+)$`)
procNetDevInterfaceRE = regexp.MustCompile(`^(.+): *(.+)$`)
procNetDevFieldSep = regexp.MustCompile(` +`)
)