From 3f8590d96c6486ad2bbba1a9bb6bd15880baa60f Mon Sep 17 00:00:00 2001 From: Project_IO Date: Thu, 24 Apr 2025 22:28:09 +0900 Subject: [PATCH] HOTFIX: fix secure issue --- app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.go b/app.go index ecdaf50..2798444 100644 --- a/app.go +++ b/app.go @@ -7,7 +7,6 @@ import ( "github.com/devproje/commando/option" "github.com/devproje/commando/types" "github.com/gin-gonic/gin" - "net/http" "os" ) @@ -33,7 +32,7 @@ func daemon(n *commando.Node) error { } app := gin.Default() - app.StaticFS("/", http.Dir("public/")) + app.StaticFS("/", gin.Dir("public/", false)) fmt.Printf("web server binding at: http://%s:%d\n", cnf.Service.Host, cnf.Service.Port) if err = app.Run(fmt.Sprintf("%s:%d", cnf.Service.Host, cnf.Service.Port)); err != nil {