|
@@ -5,7 +5,7 @@ type WebForwardingDataRequest struct {
|
|
|
Id int `form:"id" json:"id"`
|
|
|
CdnWebId int `form:"cdnWebId" json:"cdnWebId"`
|
|
|
Port string `form:"port" json:"port" validate:"required,numeric,min=1,max=65535"`
|
|
|
- Domain string `form:"domain" json:"domain" validate:"hostname_rfc1123"`
|
|
|
+ Domain string `form:"domain" json:"domain" validate:"omitempty,hostname_rfc1123|ip"`
|
|
|
BackendList []BackendList `form:"backendList" json:"backendList" validate:"required,dive"`
|
|
|
AllowIpList []string `form:"allowIpList" json:"allowIpList" validate:"dive,ip"`
|
|
|
DenyIpList []string `form:"denyIpList" json:"denyIpList" validate:"dive,ip"`
|