--------------------- PatchSet 952 Date: 2000/12/18 08:39:53 Author: hno Branch: hno-2_2-mara Tag: (none) Log: visible_http_port directive Members: src/cf.data.pre:1.1.1.2.2.1->1.1.1.2.2.1.4.1 src/internal.c:1.1.1.2.2.1->1.1.1.2.2.1.4.1 src/structs.h:1.1.1.2.2.1.2.1->1.1.1.2.2.1.2.1.2.1 Index: squid/src/cf.data.pre =================================================================== RCS file: /cvsroot/squid-sf//squid/src/cf.data.pre,v retrieving revision 1.1.1.2.2.1 retrieving revision 1.1.1.2.2.1.4.1 diff -u -r1.1.1.2.2.1 -r1.1.1.2.2.1.4.1 --- squid/src/cf.data.pre 4 Feb 2000 16:41:12 -0000 1.1.1.2.2.1 +++ squid/src/cf.data.pre 18 Dec 2000 08:39:53 -0000 1.1.1.2.2.1.4.1 @@ -1,6 +1,6 @@ # -# $Id: cf.data.pre,v 1.1.1.2.2.1 2000/02/04 16:41:12 hno Exp $ +# $Id: cf.data.pre,v 1.1.1.2.2.1.4.1 2000/12/18 08:39:53 hno Exp $ # # # SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -73,6 +73,17 @@ http_port 3128 DOC_END +NAME: visible_http_port ascii_port +TYPE: ushort +DEFAULT: none +LOC: Config.Port.visible_http +DOC_START + The port number which will be used for internal objects + (icons, digests and so on). + Defaults to the firts http_port if not set +http_port 3128 +DOC_END + NAME: icp_port udp_port TYPE: ushort Index: squid/src/internal.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/internal.c,v retrieving revision 1.1.1.2.2.1 retrieving revision 1.1.1.2.2.1.4.1 diff -u -r1.1.1.2.2.1 -r1.1.1.2.2.1.4.1 --- squid/src/internal.c 4 Feb 2000 16:41:13 -0000 1.1.1.2.2.1 +++ squid/src/internal.c 18 Dec 2000 08:39:53 -0000 1.1.1.2.2.1.4.1 @@ -1,6 +1,6 @@ /* - * $Id: internal.c,v 1.1.1.2.2.1 2000/02/04 16:41:13 hno Exp $ + * $Id: internal.c,v 1.1.1.2.2.1.4.1 2000/12/18 08:39:53 hno Exp $ * * DEBUG: section 76 Internal Squid Object handling * AUTHOR: Duane, Alex, Henrik @@ -99,7 +99,7 @@ char * internalLocalUri(const char *dir, const char *name) { - return internalRemoteUri(getMyHostname(), Config.Port.http->port, dir, name); + return internalRemoteUri(getMyHostname(), Config.Port.visible_http ? Config.Port.visible_http : Config.Port.http->port, dir, name); } const char * Index: squid/src/structs.h =================================================================== RCS file: /cvsroot/squid-sf//squid/src/structs.h,v retrieving revision 1.1.1.2.2.1.2.1 retrieving revision 1.1.1.2.2.1.2.1.2.1 diff -u -r1.1.1.2.2.1.2.1 -r1.1.1.2.2.1.2.1.2.1 --- squid/src/structs.h 9 Nov 2000 15:23:03 -0000 1.1.1.2.2.1.2.1 +++ squid/src/structs.h 18 Dec 2000 08:39:53 -0000 1.1.1.2.2.1.2.1.2.1 @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.1.1.2.2.1.2.1 2000/11/09 15:23:03 hno Exp $ + * $Id: structs.h,v 1.1.1.2.2.1.2.1.2.1 2000/12/18 08:39:53 hno Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -265,6 +265,7 @@ size_t maxRequestSize; struct { ipportlist *http; + u_short visible_http; u_short icp; #if USE_HTCP u_short htcp;