fix string method
This commit is contained in:
parent
c5214c931f
commit
327029beff
@ -56,6 +56,10 @@ func (n *network) Name() string {
|
|||||||
return n.name
|
return n.name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (n *network) String() string {
|
||||||
|
return "local"
|
||||||
|
}
|
||||||
|
|
||||||
func (n *network) Connect(node *Node) (Conn, error) {
|
func (n *network) Connect(node *Node) (Conn, error) {
|
||||||
c, err := n.transport.Dial(node.Address)
|
c, err := n.transport.Dial(node.Address)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user