Merge pull request #102 from vibe-d/fix_syslog_hostname
Fix host name conversion code for SyslogLogger
This commit is contained in:
commit
d48ae4913f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue