Skip to content

Commit 4d3452b

Browse files
author
idk
committed
tolerate .b32.i2p if present
1 parent fcee0ca commit 4d3452b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transcoders.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ var TranscoderGarlic32 = NewTranscoderFromFunctions(garlic32StB, garlic32BtS, ga
250250
var garlicBase32Encoding = base32.NewEncoding("abcdefghijklmnopqrstuvwxyz234567")
251251

252252
func garlic32StB(s string) ([]byte, error) {
253+
s = strings.Replace(s, ".b32.i2p", "", -1)
253254
// garlic address without the ".b32.i2p" substring
254255
if len(s) < 55 {
255256
if len(s) != 52 {

0 commit comments

Comments
 (0)