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.
1 parent ae5c4f8 commit 4283992Copy full SHA for 4283992
transcoders.go
@@ -283,9 +283,9 @@ func garlic32BtS(b []byte) (string, error) {
283
func garlic32Validate(b []byte) error {
284
// an i2p base64 for an Encrypted Leaseset v2 will be at least 35 bytes
285
// long
286
- if len(b) > 35 {
287
- // other than that, they will be at least 32 bytes
288
- if len(b) < 32 {
+ if len(b) < 35 {
+ // other than that, they will be exactly 32 bytes
+ if len(b) != 32 {
289
return fmt.Errorf("failed to validate garlic addr: %s not an i2p base32 address. len: %d\n", b, len(b))
290
}
291
0 commit comments