diff --git a/cmd/hello/hello.go b/cmd/hello/hello.go index 018fd9b7a..97b98be32 100644 --- a/cmd/hello/hello.go +++ b/cmd/hello/hello.go @@ -161,6 +161,10 @@ func root(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/", http.StatusFound) return } + if r.TLS != nil && *httpsAddr != "" && strings.Contains(r.Host, "hello.ipn.dev") { + http.Redirect(w, r, "https://hello.ts.net", http.StatusFound) + return + } tmpl, err := getTmpl() if err != nil { w.Header().Set("Content-Type", "text/plain")