]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #297, icons not working in Squid-2.5.
authorhno <>
Fri, 12 Apr 2002 03:34:03 +0000 (03:34 +0000)
committerhno <>
Fri, 12 Apr 2002 03:34:03 +0000 (03:34 +0000)
src/internal.cc
src/tools.cc

index 92024ca5b7324ad90ab79baf09db98d82cafa77c..ac309bb90b9cab589192d63de9179d82e4752b04 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: internal.cc,v 1.24 2002/04/04 21:33:26 hno Exp $
+ * $Id: internal.cc,v 1.25 2002/04/11 21:34:03 hno Exp $
  *
  * DEBUG: section 76    Internal Squid Object handling
  * AUTHOR: Duane, Alex, Henrik
@@ -127,7 +127,7 @@ char *
 internalLocalUri(const char *dir, const char *name)
 {
     return internalRemoteUri(getMyHostname(),
-       0, dir, name);
+       getMyPort(), dir, name);
 }
 
 const char *
index 49c18e59fba100dfe96671232fb97206cff661bb..20065db6545db9c207dfe9fbb098cd15cb84a007 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.217 2002/04/11 17:05:31 hno Exp $
+ * $Id: tools.cc,v 1.218 2002/04/11 21:34:03 hno Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -998,10 +998,10 @@ getMyPort(void)
 {
 #if USE_SSL
     if (Config.Sockaddr.http)
-       return Config.Sockaddr.http->s.sin_port;
+       return ntohs(Config.Sockaddr.http->s.sin_port);
     else
-       return Config.Sockaddr.https->s.sin_port;
+       return ntohs(Config.Sockaddr.https->s.sin_port);
 #else
-    return Config.Sockaddr.http->s.sin_port;
+    return ntohs(Config.Sockaddr.http->s.sin_port);
 #endif
 }