diff --git a/dht_options.go b/dht_options.go index d08d119db..4736a9e9f 100644 --- a/dht_options.go +++ b/dht_options.go @@ -92,6 +92,10 @@ func (c *config) applyFallbacks(h host.Host) error { return fmt.Errorf("the default validator was changed without being marked as changed") } } + + if !c.enableValues { + c.validator = nil + } return nil }