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:
parent
661427f2c1
commit
b10ca77680
5 changed files with 72 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
procNetDevInterfaceRE = regexp.MustCompile(`^([\w:]+): *(.+)$`)
|
||||
procNetDevInterfaceRE = regexp.MustCompile(`^(.+): *(.+)$`)
|
||||
procNetDevFieldSep = regexp.MustCompile(` +`)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue