more code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user