In message <[email protected]>, "Federico G. Schwindt" w
rites:

>The code below adds the function ip to the std vmod allowing to use strings 
>for acl matching. 
>I will update the documentation later today.
>Comments?

The architecture we have decided for conversion functions are

        std.TYPE(STRING, TYPE)

Where the second argument is the default value to return, if the
conversion fails.

I am not sure the VCC compiler is up to this for IP numbers right now,
because I don't think we have a way of saying "interpret this constant
string as an IP number" in the syntax right now.

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

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to