more code

This commit is contained in:
nathan committed 2025-03-22 21:28:09 +11:00
1 parent a4578fb293
commit 6b2b60b9ef
4 files changed
+41 -4

No files matched your search

+2 -1
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