Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions iocore/utils/Machine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Machine::Machine(char const *the_hostname, sockaddr const *addr)
auto result = gethostname(localhost, sizeof(localhost));
ink_release_assert(result == 0);
host_name.assign(localhost, strlen(localhost));
insert_id(localhost);
}

#if HAVE_IFADDRS_H
Expand Down Expand Up @@ -196,6 +197,7 @@ Machine::Machine(char const *the_hostname, sockaddr const *addr)
Warning("Failed to find hostname for address '%s' - %s", ats_ip_ntop(addr, ipbuff, sizeof(ipbuff)), gai_strerror(status));
} else {
host_name.assign(localhost);
insert_id(localhost);
}
}

Expand Down