Load the toml file from the current directory by default
This commit is contained in:
parent
f46cfcec5a
commit
e9faf4368c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue