This commit is contained in:
2024-04-16 14:26:06 +03:00
parent bc264c4d90
commit e7c968797b
298 changed files with 11066 additions and 398 deletions

View File

@@ -18,14 +18,14 @@ type NATRuleAddRequest struct {
// Required: true
IntIP string `url:"intIp" json:"intIp" validate:"required"`
// Internal IP port number to use for this rule
// Required: true
IntPort uint `url:"intPort" json:"intPort" validate:"required"`
// External IP start port to use for this rule
// Required: true
ExtPortStart uint `url:"extPortStart" json:"extPortStart" validate:"required"`
// Internal IP port number to use for this rule
// Required: false
IntPort uint `url:"intPort,omitempty" json:"intPort,omitempty"`
// External IP end port to use for this rule
// Required: false
ExtPortEnd uint `url:"extPortEnd,omitempty" json:"extPortEnd,omitempty"`