IPv[46] parsing

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Nov 4 11:46:59 CET 2015


--------
In message <CAJV_h0ZY3E4t5704qOHQbnQXJGxnh1hDgMneybuBFxN1jhWsgw at mail.gmail.com>
, Federico Schwindt writes:

>Any comments?

Sounds sensible, send patch.

>> My proposal
>> -----------------
>>
>> Change 3 as follows:
>>
>> 3. If the string doesn't have a space, but has a single ":" take
>> everything up to the ":" (but excluding it) as a host, and anything
>> after as the port.  If the string has 2 or more ":", take the whole
>> string as a host without port.

-- 
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