Merge pull request #102 from vibe-d/fix_syslog_hostname

Fix host name conversion code for SyslogLogger
This commit is contained in:
Sönke Ludwig 2018-11-07 22:29:37 +01:00 committed by GitHub
commit d48ae4913f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -733,10 +733,10 @@ private string hostName()
string hostName;
version (Posix) {
import core.sys.posix.sys.utsname;
import core.sys.posix.sys.utsname : uname, utsname;
utsname name;
if (uname(&name)) return hostName;
hostName = name.nodename.to!string();
hostName = name.nodename.ptr.to!string;
import std.socket;
auto ih = new InternetHost;