Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
4d3452bc
Commit
4d3452bc
authored
Mar 29, 2019
by
idk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tolerate .b32.i2p if present
parent
fcee0ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
transcoders.go
transcoders.go
+1
-0
No files found.
transcoders.go
View file @
4d3452bc
...
...
@@ -250,6 +250,7 @@ var TranscoderGarlic32 = NewTranscoderFromFunctions(garlic32StB, garlic32BtS, ga
var
garlicBase32Encoding
=
base32
.
NewEncoding
(
"abcdefghijklmnopqrstuvwxyz234567"
)
func
garlic32StB
(
s
string
)
([]
byte
,
error
)
{
s
=
strings
.
Replace
(
s
,
".b32.i2p"
,
""
,
-
1
)
// garlic address without the ".b32.i2p" substring
if
len
(
s
)
<
55
{
if
len
(
s
)
!=
52
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment