Pull request: fix beta client bug

Merge in DNS/adguard-home from beta-client-bug to master

Squashed commit of the following:

commit 641f8b5eb3827e1fd9b15e60773e365206dc1f49
Author: Eugene Burkov <e.burkov@adguard.com>
Date:   Mon Jan 11 11:54:17 2021 +0300

    home: fix beta client bug
This commit is contained in:
Eugene Burkov 2021-01-11 13:17:22 +03:00
parent ce55625d70
commit 89915e35bd
1 changed files with 5 additions and 3 deletions

View File

@ -371,10 +371,12 @@ func (web *Web) handleInstallConfigure(w http.ResponseWriter, r *http.Request) {
go func() { go func() {
_ = web.httpServer.Shutdown(context.TODO()) _ = web.httpServer.Shutdown(context.TODO())
}() }()
if web.httpServerBeta != nil {
go func() { go func() {
_ = web.httpServerBeta.Shutdown(context.TODO()) _ = web.httpServerBeta.Shutdown(context.TODO())
}() }()
} }
}
} }
func (web *Web) registerInstallHandlers() { func (web *Web) registerInstallHandlers() {