mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
fix AddressingMode DHCP serde
This commit is contained in:
parent
ee013ec9ad
commit
4a97ea8991
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ pub enum NetworkInterfaceType {
|
|||
#[serde(rename_all = "snake_case")]
|
||||
pub enum AddressingMode {
|
||||
None,
|
||||
Static { address: String },
|
||||
Static {
|
||||
address: String,
|
||||
},
|
||||
#[serde(rename(serialize = "dhcp", deserialize = "dhcp"))]
|
||||
DHCP,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue