This commit is contained in:
Frank Denis 2018-01-31 08:38:22 +01:00
parent 5e8925523f
commit f6571af24f
4 changed files with 11 additions and 11 deletions

View file

@ -13,8 +13,8 @@ import (
)
const (
AppVersion = "2.0.0beta12"
ConfigFileName = "dnscrypt-proxy.toml"
AppVersion = "2.0.0beta12"
DefaultConfigFileName = "dnscrypt-proxy.toml"
)
type App struct {
@ -43,8 +43,8 @@ func main() {
app.proxy = Proxy{}
app.proxy.xTransport = NewXTransport(30 * time.Second)
cdFileDir(ConfigFileName)
if err := ConfigLoad(&app.proxy, svcFlag, ConfigFileName); err != nil {
cdFileDir(DefaultConfigFileName)
if err := ConfigLoad(&app.proxy, svcFlag); err != nil {
dlog.Fatal(err)
}
dlog.Noticef("Starting dnscrypt-proxy %s", AppVersion)