From aee0834308fa757d7db1768dcd61532e259b3c51 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Sat, 19 May 2018 00:12:36 +0200 Subject: [PATCH] Redirect from homepage to the github project page --- tty-server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty-server/server.go b/tty-server/server.go index ba27539..b72f5ae 100644 --- a/tty-server/server.go +++ b/tty-server/server.go @@ -97,7 +97,7 @@ func NewTTYProxyServer(config TTYProxyServerConfig) (server *TTYProxyServer) { }))) routesHandler.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - server.serveContent(w, r, "index.html") + http.Redirect(w, r, "https://github.com/elisescu/tty-share", http.StatusMovedPermanently) }) routesHandler.HandleFunc("/s/{sessionID}", func(w http.ResponseWriter, r *http.Request) { server.handleSession(w, r)