Log initial DHT bootstrap results

This commit is contained in:
Matt Joiner 2018-11-21 17:05:56 +11:00
parent 9bb8a327c0
commit 40d7a709ee
1 changed files with 3 additions and 1 deletions

View File

@ -298,9 +298,11 @@ func (cl *Client) newDhtServer(conn net.PacketConn) (s *dht.Server, err error) {
s, err = dht.NewServer(&cfg)
if err == nil {
go func() {
if _, err := s.Bootstrap(); err != nil {
ts, err := s.Bootstrap()
if err != nil {
log.Printf("error bootstrapping dht: %s", err)
}
log.Printf("%s: dht bootstrap: %v", s, ts)
}()
}
return