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
dms3
go-dms3
Commits
b61d9639
Unverified
Commit
b61d9639
authored
Apr 14, 2020
by
Will Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better address generation
parent
94de6055
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/integration/wan_lan_dht_test.go
test/integration/wan_lan_dht_test.go
+1
-1
No files found.
test/integration/wan_lan_dht_test.go
View file @
b61d9639
...
...
@@ -64,7 +64,7 @@ func makeAddr(n uint32, wan bool) ma.Multiaddr {
ip
=
append
(
net
.
IP
{},
lanPrefix
...
)
}
binary
.
LittleEndian
.
PutUint32
(
ip
[
4
:
],
n
)
binary
.
LittleEndian
.
PutUint32
(
ip
[
12
:
],
n
)
addr
,
_
:=
ma
.
NewMultiaddr
(
fmt
.
Sprintf
(
"/ip6/%s/tcp/4242"
,
ip
))
return
addr
}
...
...
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