diff --git a/main.go b/main.go index 9b89980..a8939e5 100644 --- a/main.go +++ b/main.go @@ -108,6 +108,10 @@ func (h *assetsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } func main() { + if len(os.Getenv("TS_AUTHKEY")) == 0 { + log.Fatal("`TS_AUTHKEY` environment variable is not set") + } + os.Setenv("TSNET_FORCE_LOGIN", "1") s := &tsnet.Server{