aboutsummaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.go b/config.go
index e6cde1e..cc84be0 100644
--- a/config.go
+++ b/config.go
@@ -209,7 +209,7 @@ func (c *Config) load() error {
// ReadConfig reads a zdns configuration from reader r.
func ReadConfig(r io.Reader) (Config, error) {
conf := newConfig()
- _, err := toml.DecodeReader(r, &conf)
+ _, err := toml.NewDecoder(r).Decode(&conf)
if err != nil {
return Config{}, err
}