more code

This commit is contained in:
2025-03-22 21:28:09 +11:00
parent a4578fb293
commit 6b2b60b9ef
4 changed files with 41 additions and 4 deletions

View File

@@ -24,7 +24,8 @@ func GenerateCerts(tlsCert string, tlsKey string) {
// Get the hostname
hostname, err := os.Hostname()
if err != nil {
panic(err)
log.Printf("failed to lookup hostname: '%s'\n", err)
hostname = "localhost"
}
// Check that the directory exists