1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

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

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 {