dnat make servce and address optional

This commit is contained in:
Samuel Lorch 2023-11-04 15:32:07 +01:00
parent 02c5fb0281
commit f7062fed86

View file

@ -27,8 +27,8 @@ pub struct DestinationNATRule {
pub destination_addresses: Vec<String>, pub destination_addresses: Vec<String>,
pub comment: String, pub comment: String,
pub counter: bool, pub counter: bool,
pub dnat_address: String, pub dnat_address: Option<String>,
pub dnat_service: String, pub dnat_service: Option<String>,
} }
#[derive(Serialize, Deserialize, Clone, Validate, Debug)] #[derive(Serialize, Deserialize, Clone, Validate, Debug)]