mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-24 01:26:47 +01:00
Disable tls if the port is http
This commit is contained in:
parent
2dbd14b6dc
commit
68793ffe13
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ package setup
|
|||
import "github.com/mholt/caddy/middleware"
|
||||
|
||||
func TLS(c *Controller) (middleware.Middleware, error) {
|
||||
c.TLS.Enabled = true
|
||||
c.TLS.Enabled = c.Port != "http"
|
||||
|
||||
for c.Next() {
|
||||
if !c.NextArg() {
|
||||
|
|
Loading…
Reference in a new issue