diff --git a/dht_options.go b/dht_options.go index bd3523d67..8082c225f 100644 --- a/dht_options.go +++ b/dht_options.go @@ -91,6 +91,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 }