You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cups/http-support.c
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2540,6 +2540,18 @@ http_resolve_cb(
2540
2540
return;
2541
2541
}
2542
2542
2543
+
// Map the addresses "127.0.0.1" (IPv4) and "::1" (IPv6) to "localhost" to work around a well-known Avahi registration bug for local-only services (Issue #970)
2544
+
if (address->proto==AVAHI_PROTO_INET&&address->data.ipv4.address==htonl(0x7f000001))
2545
+
{
2546
+
DEBUG_puts("5http_resolve_cb: Mapping 127.0.0.1 to localhost.");
0 commit comments