mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-12 11:18:21 +00:00
fix SNATType definition
This commit is contained in:
parent
e34efd916c
commit
02c5fb0281
1 changed files with 5 additions and 2 deletions
|
@ -51,8 +51,11 @@ pub enum Verdict {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "lowercase")]
|
||||||
pub enum SNATType {
|
pub enum SNATType {
|
||||||
SNAT { address: String, service: String },
|
SNAT {
|
||||||
|
address: Option<String>,
|
||||||
|
service: Option<String>,
|
||||||
|
},
|
||||||
Masquerade,
|
Masquerade,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue