fix b32 validator
This commit is contained in:
parent
53a25b8faf
commit
42ae6c59c9
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func (r Resolver) ValidateI2PAddr(name string) bool {
|
||||||
for _, suffix := range r.allowedSuffixes {
|
for _, suffix := range r.allowedSuffixes {
|
||||||
if strings.HasSuffix(name, suffix) {
|
if strings.HasSuffix(name, suffix) {
|
||||||
if suffix == ".b32.i2p" {
|
if suffix == ".b32.i2p" {
|
||||||
if len(name) != 52 {
|
if len(name) != 60 {
|
||||||
noi2p = true
|
noi2p = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue