cups/do-not-broadcast-with-hostnames.patch

25 lines
760 B
Diff
Raw Normal View History

2012-07-30 17:08:18 +04:00
Author: till.kamppeter@gmail.com
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -387,7 +387,7 @@
{
if (httpAddrLocalhost(&temp))
strlcpy(con->servername, "localhost", sizeof(con->servername));
- else if (HostNameLookups || RemotePort)
+ else if (HostNameLookups)
httpAddrLookup(&temp, con->servername, sizeof(con->servername));
else
httpAddrString(&temp, con->servername, sizeof(con->servername));
--- a/scheduler/conf.c
+++ b/scheduler/conf.c
@@ -755,7 +755,7 @@
cupsdAddAlias(ServerAlias, temp);
cupsdLogMessage(CUPSD_LOG_DEBUG, "Added auto ServerAlias %s", temp);
- if (HostNameLookups || RemotePort)
+ if (HostNameLookups)
{
struct hostent *host; /* Host entry to get FQDN */