Skip to content

Commit c24a872

Browse files
authored
Merge pull request #345 from SekoiaLab/fix/increase-server-name-length
feat(models): increase node name length
2 parents 9ec683b + b044dd4 commit c24a872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type Node struct {
3232
Address string `json:"address" bson:"address" yaml:"address" validate:"omitempty,ipv4"`
3333
Address6 string `json:"address6" bson:"address6" yaml:"address6" validate:"omitempty,ipv6"`
3434
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"`
35+
Name string `json:"name" bson:"name" yaml:"name" validate:"omitempty,max=32,in_charset"`
3636
ListenPort int32 `json:"listenport" bson:"listenport" yaml:"listenport" validate:"omitempty,numeric,min=1024,max=65535"`
3737
PublicKey string `json:"publickey" bson:"publickey" yaml:"publickey" validate:"required,base64"`
3838
Endpoint string `json:"endpoint" bson:"endpoint" yaml:"endpoint" validate:"required,ip"`

0 commit comments

Comments
 (0)