mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: directly embedding ui assets (fixes #1135)
This commit is contained in:
parent
ea8e96c285
commit
ae466b702a
1646 changed files with 256058 additions and 22 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
//go:embed ui/dist/ui
|
||||
//go:embed ui
|
||||
web embed.FS
|
||||
)
|
||||
|
||||
|
@ -80,7 +80,7 @@ func (mod *UIModule) Configure() (err error) {
|
|||
|
||||
mod.server.Addr = fmt.Sprintf("%s:%d", ip, port)
|
||||
|
||||
dist, _ := fs.Sub(web, "ui/dist/ui")
|
||||
dist, _ := fs.Sub(web, "ui")
|
||||
mod.server.Handler = http.FileServer(http.FS(dist))
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue