mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-06 14:47:35 +03:00
Nits
This commit is contained in:
parent
5e8925523f
commit
f6571af24f
4 changed files with 11 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue