We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ec683b + b044dd4 commit c24a872Copy full SHA for c24a872
models/node.go
@@ -32,7 +32,7 @@ type Node struct {
32
Address string `json:"address" bson:"address" yaml:"address" validate:"omitempty,ipv4"`
33
Address6 string `json:"address6" bson:"address6" yaml:"address6" validate:"omitempty,ipv6"`
34
LocalAddress string `json:"localaddress" bson:"localaddress" yaml:"localaddress" validate:"omitempty,ip"`
35
- Name string `json:"name" bson:"name" yaml:"name" validate:"omitempty,max=12,in_charset"`
+ Name string `json:"name" bson:"name" yaml:"name" validate:"omitempty,max=32,in_charset"`
36
ListenPort int32 `json:"listenport" bson:"listenport" yaml:"listenport" validate:"omitempty,numeric,min=1024,max=65535"`
37
PublicKey string `json:"publickey" bson:"publickey" yaml:"publickey" validate:"required,base64"`
38
Endpoint string `json:"endpoint" bson:"endpoint" yaml:"endpoint" validate:"required,ip"`
0 commit comments