[#238] nns: Fix maxDomainNameFragmentLength

maxDomainNameFragmentLength means maximum length of label of domain name

A label may contain zero to 63 characters. The null label, of length
zero, is reserved for the root zone. The full domain name may not exceed
the length of 253 characters in its textual representation

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
support/v0.16
Angira Kekteeva 2022-04-04 23:06:09 +04:00 committed by Alex Vanin
parent 4a0f0d7408
commit 0aa7fd4189
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const (
// maxRootLength is the maximum domain root length.
maxRootLength = 16
// maxDomainNameFragmentLength is the maximum length of the domain name fragment.
maxDomainNameFragmentLength = 62
maxDomainNameFragmentLength = 63
// minDomainNameLength is minimum domain length.
minDomainNameLength = 3
// maxDomainNameLength is maximum domain length.