mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-19 21:23:58 +00:00
cmd/derper: increase HSTS cache lifetime to 2 years.
Fixes #3373. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
9feb483ad3
commit
9a217ec841
@ -240,7 +240,7 @@ func main() {
|
|||||||
// HSTS. Set it even though derper doesn't really serve
|
// HSTS. Set it even though derper doesn't really serve
|
||||||
// anything of interest to browsers (and API clients like
|
// anything of interest to browsers (and API clients like
|
||||||
// tailscale don't obey HSTS).
|
// tailscale don't obey HSTS).
|
||||||
w.Header().Set("Strict-Transport-Security", "max-age=600; includeSubDomains")
|
w.Header().Set("Strict-Transport-Security", "max-age=63072000; includeSubDomains")
|
||||||
mux.ServeHTTP(w, r)
|
mux.ServeHTTP(w, r)
|
||||||
})
|
})
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user