Commit a5018fcc authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

net/mock: interface addresses

parent bd45adfb
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment