mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Fix host name retrieval during TLS certificate generation (#1935)
Use HOSTNAME if defined, otherwise invoke gethostname(3) if possible, fallback to uname(2)
This commit is contained in:
+1
-1
@@ -316,7 +316,7 @@ bool CZNC::WritePemFile() {
|
||||
return false;
|
||||
}
|
||||
|
||||
CUtils::GenerateCert(f, "");
|
||||
CUtils::GenerateCert(f);
|
||||
fclose(f);
|
||||
|
||||
CUtils::PrintStatus(true);
|
||||
|
||||
Reference in New Issue
Block a user