mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +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)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum SNATType {
|
||||
SNAT { address: String, service: String },
|
||||
SNAT {
|
||||
address: Option<String>,
|
||||
service: Option<String>,
|
||||
},
|
||||
Masquerade,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue