fix: Fixed Website configuration file automatically keeps adding HTTPS redirects

This commit is contained in:
zhengkunwang223 2025-12-29 10:16:59 +08:00
parent 4e7b654090
commit 987fa948bd

View file

@ -487,7 +487,7 @@ func (s *Server) AddHTTP2HTTPS(httpsPort int) {
}
newDir.Block = block
s.UpdateDirectiveBySecondKey("if", " ($scheme", newDir)
s.UpdateDirectiveBySecondKey("if", "($scheme", newDir)
}
func (s *Server) UpdateAllowIPs(ips []string) {