ports/121644: using a HTTP proxy in the frox-0.7.18_1 port

Sergey Samitovsky svs at nktv.mk.ua
Wed Mar 12 15:50:04 UTC 2008


>Number:         121644
>Category:       ports
>Synopsis:       using a HTTP proxy in the frox-0.7.18_1 port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 15:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Samitovsky
>Release:        7.0-RELEASE
>Organization:
NKTV Ltd
>Environment:
FreeBSD pr.nktv.mk.ua 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Fri Feb 29 18:16:26 EET 2008     root at pr.nktv.mk.ua:/usr/obj/usr/src/sys/PR  amd64

>Description:
Frox ignores the following options from the configuration file /usr/local/etc/frox.conf:

 CacheModule http
 MinCacheSize 65536

and doesn't use an HTTP proxy (like squid) and always retrieves file directly.

>How-To-Repeat:
Turn on http cache module in the config file and try to get any file via frox:

CacheModule http
HTTPProxy 127.0.0.1:3128
MinCacheSize 65536
ForceHTTP yes


>Fix:
Apply patch


Patch attached with submission follows:

--- src/cache.c.orig	2008-03-12 16:56:10.000000000 +0200
+++ src/cache.c	2008-03-12 16:56:10.000000000 +0200
@@ -364,7 +364,7 @@
 	int code;
 	sstr *msg;
 
-	if(!strcasecmp(config.cachemod, "Local") || !config.forcehttp) {
+	if(!strcasecmp(config.cachemod, "Local") || config.forcehttp) {
 		send_ccommand("SIZE", sstr_buf(filename));
 		get_message(&code, &msg);
 		if(code / 100 != 2) {


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list