The unified diff between revisions [cf48f9a1..] and [812a98e1..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'src/internal.c'

#
#
# patch "src/internal.c"
#  from [246507180f32f02dea3fd7887ec9dbfce09b73b1]
#    to [9093478b8b63d91fcb5f2c05f533bd9ae48cf926]
#
============================================================
--- src/internal.c	246507180f32f02dea3fd7887ec9dbfce09b73b1
+++ src/internal.c	9093478b8b63d91fcb5f2c05f533bd9ae48cf926
@@ -1,6 +1,6 @@

 /*
- * $Id: internal.c,v 1.23.2.2 2006/03/10 22:43:37 hno Exp $
+ * $Id: internal.c,v 1.23.2.3 2006/05/12 15:57:23 hno Exp $
  *
  * DEBUG: section 76    Internal Squid Object handling
  * AUTHOR: Duane, Alex, Henrik
@@ -135,6 +135,9 @@ internalHostname(void)
 {
     LOCAL_ARRAY(char, host, SQUIDHOSTNAMELEN + 1);
     xstrncpy(host, getMyHostname(), SQUIDHOSTNAMELEN);
+    if (Config.appendDomain && !strchr(host, '.'))
+	strncat(host, Config.appendDomain, SQUIDHOSTNAMELEN -
+	    strlen(host) - 1);
     Tolower(host);
     return host;
 }