Skip to content

Commit

Permalink
fix: don't restart tls if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Jul 20, 2022
1 parent 4668d4d commit 117588c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ func (d *Daemon) addVhost(binding string, w http.ResponseWriter) *Vhost {
w.Header().Set("Access-Control-Allow-Origin", "*")

d.loggedHandler.AddVhost(vhost)
d.restartTLS()
if d.enableTLS() {
d.restartTLS()
}

err = addToHosts(vhost.Host)
if err != nil {
Expand Down

0 comments on commit 117588c

Please sign in to comment.