add version info and GitHub link on index

This commit is contained in:
杨黄林
2023-09-10 23:29:55 +08:00
parent 92f3e6fe23
commit 5cdf8cc380
6 changed files with 15 additions and 2 deletions

View File

@@ -215,6 +215,7 @@ func (c *HandleController) MakeManagerFunc() func(context *gin.Context) {
"Addr": ginI18n.MustGetMessage(context, "Addr"),
"LastStart": ginI18n.MustGetMessage(context, "Last Start"),
"LastClose": ginI18n.MustGetMessage(context, "Last Close"),
"version": c.Version,
})
}
}

View File

@@ -20,6 +20,7 @@ type HandleController struct {
Subdomains map[string][]string
ConfigFile string
IniFile *ini.File
Version string
}
func NewHandleController(config *HandleController) *HandleController {