mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-21 20:45:33 +03:00
referred https port from config
This commit is contained in:
parent
6a62f704e2
commit
b7e815483e
1 changed files with 2 additions and 1 deletions
|
@ -348,7 +348,8 @@ func handleHTTPSRedirect(w http.ResponseWriter, r *http.Request) (ok bool) {
|
|||
}
|
||||
|
||||
if config.DNS.ServeHTTP3 {
|
||||
w.Header().Set("Alt-Svc", `h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"`)
|
||||
altSvc := fmt.Sprintf(`h3=":%[1]v"; ma=2592000,h3-29=":%[1]v"; ma=2592000,h3-Q050=":%[1]v";ma=2592000,h3-Q046=":%[1]v"; ma=2592000,h3-Q043=":%[1]v"; ma=2592000,quic=":%[1]v"; ma=2592000; v="46,43"`, config.TLS.PortHTTPS)
|
||||
w.Header().Set("Alt-Svc", altSvc)
|
||||
}
|
||||
|
||||
w.Header().Set("Access-Control-Allow-Origin", originURL.String())
|
||||
|
|
Loading…
Reference in a new issue