We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186dc6e commit cb1db1fCopy full SHA for cb1db1f
internal/server/ip/link.go
@@ -36,6 +36,7 @@ type jsonLink struct {
36
AllMulticast int `json:"allmulti"`
37
Master string `json:"master"`
38
Up string `json:"operstate"`
39
+ Type string `json:"link_type"`
40
Info struct {
41
Kind string `json:"info_kind"`
42
} `json:"linkinfo"`
@@ -117,7 +118,7 @@ func LinkFromName(name string) (*Link, error) {
117
118
Master: jl.Master,
119
}
120
- if jl.Address != "" {
121
+ if jl.Type == "ether" && jl.Address != "" {
122
l.Address, err = net.ParseMAC(jl.Address)
123
if err != nil {
124
return nil, err
0 commit comments