From 6db0fbdbb97e1f6deb05d1e7ff76e0f7f00157ff Mon Sep 17 00:00:00 2001 From: syssecfsu Date: Tue, 11 Jan 2022 22:46:56 -0500 Subject: [PATCH] Update main.go --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 14131e0..7da16ac 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func fillIndex(c *gin.Context) { } func main() { - fp, err := os.OpenFile("web_term.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) + fp, err := os.OpenFile("witty.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) if err == nil { defer fp.Close() @@ -95,11 +95,11 @@ func main() { c.HTML(http.StatusOK, "term.html", gin.H{ "title": "interactive terminal", - "path": "/ws_do", + "path": "/ws_new", }) }) - rt.GET("/ws_do", func(c *gin.Context) { + rt.GET("/ws_new", func(c *gin.Context) { term_conn.ConnectTerm(c.Writer, c.Request, false, "", cmdToExec) })