From 6aa5ed29486c6dc374ae4cde3783c343dfca3bff Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 13 May 2023 22:13:09 +0200 Subject: [PATCH] Make NAT Action Service and Address Optional --- internal/definitions/firewall/destination_nat.go | 4 ++-- internal/definitions/firewall/source_nat.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/definitions/firewall/destination_nat.go b/internal/definitions/firewall/destination_nat.go index dc2f09b..54cae2e 100644 --- a/internal/definitions/firewall/destination_nat.go +++ b/internal/definitions/firewall/destination_nat.go @@ -2,6 +2,6 @@ package firewall type DestinationNATRule struct { Rule - Address string `json:"address,omitempty"` - Service string `json:"service,omitempty"` + Address *string `json:"address,omitempty"` + Service *string `json:"service,omitempty"` } diff --git a/internal/definitions/firewall/source_nat.go b/internal/definitions/firewall/source_nat.go index 49b06b0..239835a 100644 --- a/internal/definitions/firewall/source_nat.go +++ b/internal/definitions/firewall/source_nat.go @@ -5,8 +5,8 @@ import "encoding/json" type SourceNATRule struct { Rule Type SnatType `json:"type" validate:"min=0,max=1"` - Address string `json:"address,omitempty"` - Service string `json:"service,omitempty"` + Address *string `json:"address,omitempty"` + Service *string `json:"service,omitempty"` } type SnatType int