dht/dht.go | 4 +--- diff --git a/dht/dht.go b/dht/dht.go index bca1c7783a41dfc7400690def0e307fd39868908..db886b46ea5df83846f25aff6d43c52aa6839722 100644 --- a/dht/dht.go +++ b/dht/dht.go @@ -50,7 +50,6 @@ transactionIDInt uint64 nodes map[string]*node // Keyed by dHTAddr.String(). mu sync.Mutex closed chan struct{} - passive bool // Don't respond to queries. ipBlockList *iplist.IPList badNodes *boom.BloomFilter @@ -139,7 +138,6 @@ if err != nil { return } } - s.passive = c.Passive s.bootstrapNodes = c.BootstrapNodes err = s.init() if err != nil { @@ -722,7 +720,7 @@ node := s.getNode(source, m.ID()) node.SetIDFromString(args["id"].(string)) node.lastGotQuery = time.Now() // Don't respond. - if s.passive { + if s.config.Passive { return } switch m["q"] {