p2p: server>discover table Self=Node exported

This commit is contained in:
zelig
2015-03-15 13:38:41 +07:00
parent 7279a485c2
commit e150832734
2 changed files with 12 additions and 8 deletions

View File

@ -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.