From e1508327342135fc43676f3778db70814ef82569 Mon Sep 17 00:00:00 2001 From: zelig Date: Sun, 15 Mar 2015 13:38:41 +0700 Subject: p2p: server>discover table Self=Node exported --- p2p/discover/table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'p2p/discover') diff --git a/p2p/discover/table.go b/p2p/discover/table.go index e3bec9328..33b705a12 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -51,9 +51,9 @@ func newTable(t transport, ourID NodeID, ourAddr *net.UDPAddr) *Table { return tab } -// Self returns the local node ID. -func (tab *Table) Self() NodeID { - return tab.self.ID +// Self returns the local node. +func (tab *Table) Self() *Node { + return tab.self } // Close terminates the network listener. -- cgit v1.2.3