Fix host name conversion code for SyslogLogger.

See vibe-d/vibe.d#2220
This commit is contained in:
Sönke Ludwig 2018-11-07 09:41:57 +01:00
parent 2c37a7450b
commit aca672416c

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;