Modify http.lua to do a host lookup first, to determine the right
address family to use (previously tcp was the default).