On Tue, Mar 31, 2009 at 05:52:59PM -0700, Phil Pennock wrote: > Please find attached a fairly short patch to let wget use the TLS > extension for Server Name Indication, to be compatible with vhosting of > SSL sites. Most modern graphical browsers now support SNI. > Nice feature.
> + > +/* Determine whether or not a hostname is an IP address that we recognise. */ > +bool > +is_ip_address (const char *name) > +{ > + const char *endp; > + > + endp = name + strlen(name); > + if (is_valid_ipv4_address(name, endp)) > + return true; > +#ifdef ENABLE_IPV6 > + if (is_valid_ipv4_address(name, endp)) ^^^^ is_valid_ipv6_address() should be called here. > + return true; > +#endif > + return false; > +} -- Petr
pgp0JR78qJjhJ.pgp
Description: PGP signature