mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
tsnet: add CertDomains helper (#7533)
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -34,6 +34,8 @@ func main() {
|
||||
}
|
||||
defer ln.Close()
|
||||
|
||||
fmt.Printf("Listening on https://%v\n", s.CertDomains()[0])
|
||||
|
||||
err = http.Serve(ln, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintln(w, "<html><body><h1>Hello, internet!</h1>")
|
||||
}))
|
||||
|
Reference in New Issue
Block a user