mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 16:38:31 +00:00
add build stamp to /stats
This commit is contained in:
parent
6cadcffd5c
commit
976a2593eb
2 changed files with 16 additions and 3 deletions
|
@ -14,6 +14,9 @@ import (
|
|||
var configFilename = flag.String("config", "config.json", "Configuration file, including the keypairs for the NaCl crypto library, for communicating with the backend.")
|
||||
var flagGenerateKeys = flag.Bool("genkeys", false, "Generate NaCl keys instead of serving requests.\nArguments: [int serverId] [base64 backendPublic]\nThe backend public key can either be specified in base64 on the command line, or put in the json file later.")
|
||||
|
||||
var BuildTime string = "build not stamped"
|
||||
var BuildHash string = "build not stamped"
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
|
@ -50,6 +53,7 @@ func main() {
|
|||
}
|
||||
|
||||
server.SetupServerAndHandle(conf, nil)
|
||||
server.SetBuildStamp(BuildTime, BuildHash)
|
||||
|
||||
go commandLineConsole()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue