HOTFIX: fix secure issue
This commit is contained in:
parent
69f7281ad1
commit
3f8590d96c
1 changed files with 1 additions and 2 deletions
3
app.go
3
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 {
|
||||
|
|
Loading…
Reference in a new issue