8c1ad2d3a8ec095e86da02dbea3adec228c48820
A recurring problem, mainly on the BSD's, and also on some Linux installations, is a failure for ttsession to start and any clients trying to attach to it failing due to having a hostname that is not associated with an IP address. This is due to code which looks up the hostname, and if it does not have a valid host record, then TT just fails. This has required those users to add an alias for their host name in their /etc/hosts file. With this commit, this should no longer be necessary. Now, if _XGethostbyname() fails when looking up the local name, a default of "localhost" is used, which should always exist. This was run tested on Linux and FreeBSD 11.1. It was compile tested on OpenBSD 6.2.
Description
No description provided
76 MiB
Languages
C
80.1%
omnetpp-msg
8.9%
C++
3.8%
Shell
2%
Roff
1.6%
Other
3.2%