Show version info in about page

This commit is contained in:
WithoutPants
2019-08-21 14:47:48 +10:00
parent 4983437a34
commit 3cf4b26f1d
10 changed files with 274 additions and 5 deletions

View File

@@ -180,6 +180,10 @@ func printVersion() {
fmt.Printf("stash version: %s (%s)\n", githash, buildstamp)
}
func GetVersion() (string, string) {
return githash, buildstamp
}
func makeTLSConfig() *tls.Config {
cert, err := ioutil.ReadFile(paths.GetSSLCert())
if err != nil {