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

Revert "move ConfigLoad and InitPluginsGlobals to appMain"

This reverts commit b67d19ffb3.
This commit is contained in:
Frank Denis 2019-10-31 17:36:28 +01:00
parent 393195066e
commit 828af28658

View File

@ -109,7 +109,15 @@ func main() {
}
func (app *App) Start(service service.Service) error {
go app.appMain()
go func() {
if err := ConfigLoad(app.proxy, app.flags); err != nil {
dlog.Fatal(err)
}
if err := app.proxy.InitPluginsGlobals(); err != nil {
dlog.Fatal(err)
}
app.appMain()
}()
return nil
}
@ -123,12 +131,6 @@ func (app *App) Stop(service service.Service) error {
}
func (app *App) appMain() {
if err := ConfigLoad(app.proxy, app.flags); err != nil {
dlog.Fatal(err)
}
if err := app.proxy.InitPluginsGlobals(); err != nil {
dlog.Fatal(err)
}
pidfile.Write()
app.proxy.StartProxy()
}