Ok, I kind of misunderstood the "-n" parameter. It is the interface to listen to, which is not necessarily the host name as seen from outside. I changed that in the following way:
- if the URL option is present, the host name is taken from there
- if the URL option is not present, elog calls gethostname()/gethostbyname() to retrieve the local host name
the host name which comes from these two possibilities is used internally in all cases where it's needed, like email notifications. |