Load the toml file from the current directory by default

This commit is contained in:
Frank Denis 2018-01-13 00:14:12 +01:00
parent f46cfcec5a
commit e9faf4368c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ type ServerConfig struct {
}
func ConfigLoad(proxy *Proxy, config_file string) error {
configFile := flag.String("config", "/etc/dnscrypt-proxy/dnscrypt-proxy.toml", "path to the configuration file")
configFile := flag.String("config", "dnscrypt-proxy.toml", "path to the configuration file")
flag.Parse()
config := newConfig()
if _, err := toml.DecodeFile(*configFile, &config); err != nil {