mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-22 19:33:32 +03:00
parent
cfbdae7abb
commit
ec757286c5
3 changed files with 6 additions and 3 deletions
3
main.go
3
main.go
|
@ -128,10 +128,11 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
// set app extra data
|
||||
extraData := make(map[string]string)
|
||||
extraData := make(map[string]interface{})
|
||||
extraData["appVersion"] = appVersion
|
||||
extraData["gitCommit"] = gitCommit
|
||||
extraData["basePath"] = util.BasePath
|
||||
extraData["loginDisabled"] = flagDisableLogin
|
||||
|
||||
// strip the "templates/" prefix from the embedded directory so files can be read by their direct name (e.g.
|
||||
// "base.html" instead of "templates/base.html")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue