Skip to content

Commit

Permalink
net/mock: interface addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Dec 23, 2014
1 parent bd45adf commit a5018fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/mock/mock_peernet.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package mocknet

import (
"errors"
"fmt"
"math/rand"
"sync"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a5018fc

Please sign in to comment.