[PATCH] Squid3 virtual-host httpd-accelerator fix

From: Sebastien Raveau <sebastien.raveau@dont-contact.us>
Date: Fri, 15 Dec 2006 22:43:49 +0100

Hi guys!

This afternoon I was testing Squid3 (needed the ICAP-client functionality) and
it wouldn't start as a virtual-host httpd-accelerator (the -V option on the
command-line), saying "FATAL: No http_port specified" even though it really
was specified in the configuration file...

I found out this is because mainParseOptions() is called _before_
parseConfigFile() in main.cc, so of course Config.Sockaddr.http is NULL when
handling the -V option. The attached patch fixes this.

Patching that was no big deal, but it's better when it works out of the box ;)
So here you are, my tiny contribution to the great Squid!

Keep up the good work,

-- 
Sébastien Raveau
computer and network security student
head of the hawKeye network monitor project
http://hawkeye.sourceforge.net/

Received on Mon Dec 18 2006 - 15:35:42 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 30 2006 - 12:00:04 MST