Skip to content

Commit

Permalink
Fix host name conversion code for SyslogLogger.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Nov 7, 2018
1 parent 2c37a74 commit aca6724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/core/log.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aca6724

Please sign in to comment.