]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/lpd.c
Merge changes from CUPS 1.7svn-r10578.
[thirdparty/cups.git] / backend / lpd.c
index 874606fe92822cd471a427c8dbb678162cc3f40f..e33081ce9235d1214e1388e31e042b6886105025 100644 (file)
@@ -936,7 +936,7 @@ lpd_queue(const char      *hostname,        /* I - Host to connect to */
       return (CUPS_BACKEND_FAILED);
     }
 
-    if (orighost)
+    if (orighost && _cups_strcasecmp(orighost, "localhost"))
       strlcpy(localhost, orighost, sizeof(localhost));
     else
       httpGetHostname(NULL, localhost, sizeof(localhost));