std.ip() with hostnames

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 22 10:35:44 CEST 2014


In message <CAJV_h0Ye=GpGOo1H-gnemYkoWDnJa5PLJbReYCu9qdWkMPwd8A at mail.gmail.com>
, Federico Schwindt writes:

>I'm writing a vmod and I noticed std.ip() will happily resolve its argument
>if a hostname is used.  Feature or bug?

std.ip() does a getaddrinfo(3) on its argument by design.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list