don't add our listener address into addrbook.

This commit is contained in:
Jae Kwon
2014-07-17 15:42:08 -07:00
parent 9f7765d334
commit 9464241c02
2 changed files with 41 additions and 30 deletions

View File

@ -80,6 +80,7 @@ func (n *Node) Stop() {
func (n *Node) AddListener(l p2p.Listener) {
log.Info("Added %v", l)
n.lz = append(n.lz, l)
n.book.AddOurAddress(l.ExternalAddress())
}
func (n *Node) inboundConnectionHandler(l p2p.Listener) {