From 9eae8de9025e7bbe12735b7307ea1e4f1613a95c Mon Sep 17 00:00:00 2001 From: Alison Winters Date: Wed, 30 Oct 2019 21:56:08 +0800 Subject: [PATCH] fix the file not found error message when passing -config --- dnscrypt-proxy/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index b0031632..4043bbe0 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -225,7 +225,7 @@ func findConfigFile(configFile *string) (string, error) { func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error { foundConfigFile, err := findConfigFile(flags.ConfigFile) if err != nil { - dlog.Fatalf("Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?", flags.ConfigFile) + dlog.Fatalf("Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?", *flags.ConfigFile) } config := newConfig() md, err := toml.DecodeFile(foundConfigFile, &config)