/*
- * $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
internalLocalUri(const char *dir, const char *name)
{
return internalRemoteUri(getMyHostname(),
- 0, dir, name);
+ getMyPort(), dir, name);
}
const char *
/*
- * $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
{
#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
}