Fix: missing JSON struct tags on hooks
This commit is contained in:
parent
8e80c205c6
commit
321edb324b
8
netif.go
8
netif.go
@ -14,13 +14,13 @@ import (
|
|||||||
|
|
||||||
type Hooks struct {
|
type Hooks struct {
|
||||||
// PreUp of the interface
|
// PreUp of the interface
|
||||||
PreUp []string
|
PreUp []string `json:"pre_up,omitempty"`
|
||||||
// PostUp of the interface
|
// PostUp of the interface
|
||||||
PostUp []string
|
PostUp []string `json:"post_up,omitempty"`
|
||||||
// PreDown of the interface
|
// PreDown of the interface
|
||||||
PreDown []string
|
PreDown []string `json:"pre_down,omitempty"`
|
||||||
// PostDown of the interface
|
// PostDown of the interface
|
||||||
PostDown []string
|
PostDown []string `json:"post_down,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AddressConfig uint8
|
type AddressConfig uint8
|
||||||
|
Loading…
Reference in New Issue
Block a user