homeContext refactoring

This commit is contained in:
Andrey Meshkov
2020-09-08 15:16:36 +03:00
parent 06594bde8f
commit cc1060d428
10 changed files with 255 additions and 241 deletions

View File

@@ -134,7 +134,7 @@ func (t *TLSMod) Reload() {
t.certLastMod = fi.ModTime().UTC()
_ = reconfigureDNSServer()
_ = Context.reconfigureDNSServer()
Context.web.TLSConfigChanged(tlsConf)
}
@@ -277,7 +277,7 @@ func (t *TLSMod) handleTLSConfigure(w http.ResponseWriter, r *http.Request) {
t.confLock.Unlock()
t.setCertFileTime()
onConfigModified()
err = reconfigureDNSServer()
err = Context.reconfigureDNSServer()
if err != nil {
httpError(w, http.StatusInternalServerError, "%s", err)
return