mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-24 01:51:10 +01:00
fix CIDRWhitelist status field
This commit is contained in:
@@ -17,7 +17,7 @@ type cidrWhitelist struct {
|
||||
|
||||
type cidrWhitelistOpts struct {
|
||||
Allow []*types.CIDR `validate:"min=1"`
|
||||
StatusCode int `validate:"omitempty,gte=400,lte=599"`
|
||||
StatusCode int `json:"status" validate:"omitempty,gte=400,lte=599"`
|
||||
Message string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user