hello icon indicating copy to clipboard operation
hello copied to clipboard

Hostname and IP address mapping

Open GalaxyGorilla opened this issue 8 years ago • 3 comments

Currently hostnames are not mapped to IPs using e.g. /etc/hosts. This would be an easy change in the client transport protocol modules.

Just from a quick look I would say that inet offers the functionality which is needed here.

GalaxyGorilla avatar Jul 08 '16 08:07 GalaxyGorilla

and this here is the place where it should happen: https://github.com/travelping/hello/blob/master/src/transports/hello_zmq_client.erl#L98-L99

and ... this here looks usable http://erlang.org/doc/man/inet.html#getaddr-2

mgumz avatar Jul 08 '16 09:07 mgumz

This is fixed in #96

00dingens avatar Jul 11 '16 07:07 00dingens

TODO: Hostnames are not resolved at hello_http_client in http_connect_url/1. (see Code.) The IPv4/v6 information might be in authority.

00dingens avatar Jul 11 '16 08:07 00dingens