This commit is contained in:
Frank Denis 2018-01-31 08:40:20 +01:00
parent f6571af24f
commit cdb8faba75
1 changed files with 2 additions and 4 deletions

View File

@ -106,7 +106,7 @@ type BlockIPConfig struct {
func ConfigLoad(proxy *Proxy, svcFlag *string) error {
version := flag.Bool("version", false, "Prints current proxy version")
configFile := flag.String("config", "dnscrypt-proxy.toml", "Path to the configuration file")
configFile := flag.String("config", DefaultConfigFileName, "Path to the configuration file")
resolve := flag.String("resolve", "", "resolve a name using system libraries")
list := flag.Bool("list", false, "print the list of available resolvers for the enabled filters")
flag.Parse()
@ -251,12 +251,10 @@ func (config *Config) loadSources(proxy *Proxy) error {
if !ok {
continue
}
var stamp ServerStamp
var err error
if len(serverConfig.Stamp) == 0 {
dlog.Fatalf("Missing stamp for the static [%s] definition", serverName)
}
stamp, err = NewServerStampFromString(serverConfig.Stamp)
stamp, err := NewServerStampFromString(serverConfig.Stamp)
if err != nil {
return err
}