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
a5018fcc
Commit
a5018fcc
authored
Dec 23, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/mock: interface addresses
parent
bd45adfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
net/mock/mock_peernet.go
net/mock/mock_peernet.go
+1
-2
No files found.
net/mock/mock_peernet.go
View file @
a5018fcc
package
mocknet
import
(
"errors"
"fmt"
"math/rand"
"sync"
...
...
@@ -290,7 +289,7 @@ func (pn *peernet) ListenAddresses() []ma.Multiaddr {
// listens. It expands "any interface" addresses (/ip4/0.0.0.0, /ip6/::) to
// use the known local interfaces.
func
(
pn
*
peernet
)
InterfaceListenAddresses
()
([]
ma
.
Multiaddr
,
error
)
{
return
nil
,
errors
.
New
(
"Mocknet does not have interfaces."
)
return
pn
.
ListenAddresses
(),
nil
}
// Connectedness returns a state signaling connection capabilities
...
...
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