From f7062fed86ece4b2f7bff7fccff4b35c20e2105d Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 4 Nov 2023 15:32:07 +0100 Subject: [PATCH] dnat make servce and address optional --- src/definitions/firewall.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/firewall.rs b/src/definitions/firewall.rs index 55ae9dc..ee16298 100644 --- a/src/definitions/firewall.rs +++ b/src/definitions/firewall.rs @@ -27,8 +27,8 @@ pub struct DestinationNATRule { pub destination_addresses: Vec, pub comment: String, pub counter: bool, - pub dnat_address: String, - pub dnat_service: String, + pub dnat_address: Option, + pub dnat_service: Option, } #[derive(Serialize, Deserialize, Clone, Validate, Debug)]