Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'localhost' fallback not working #1723

Closed
michaelrsweet opened this issue May 24, 2006 · 2 comments
Closed

'localhost' fallback not working #1723

michaelrsweet opened this issue May 24, 2006 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2.1
CUPS.org User: twaugh.redhat

The 'localhost' fallback in httpAddrGetList() isn't working. Original bug report:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192628

Patch attached.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Thanks!

@michaelrsweet
Copy link
Collaborator Author

"cups-localhost.patch":

--- cups-1.2.1/cups/http-addrlist.c.localhost 2006-05-24 16:55:15.000000000 +0100
+++ cups-1.2.1/cups/http-addrlist.c 2006-05-24 16:56:11.000000000 +0100
@@ -506,6 +506,9 @@
temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1);

endif /* WIN32 */

  •    if (!first)
    
  •      first = temp;
    
    • addr = temp;
      }

@@ -527,6 +530,9 @@
temp->addr.ipv4.sin_port = htons(portnum);
temp->addr.ipv4.sin_addr.s_addr = htonl(0x7f000001);

  •    if (!first)
    
  •      first = temp;
    
    • if (addr)
      addr->next = temp;
      else
      @@ -556,6 +562,9 @@
      temp->addr.ipv6.sin6_family = AF_INET6;
      temp->addr.ipv6.sin6_port = htons(portnum);
  •    if (!first)
    
  •      first = temp;
    
    • addr = temp;
      }

@@ -576,6 +585,9 @@
temp->addr.ipv4.sin_family = AF_INET;
temp->addr.ipv4.sin_port = htons(portnum);

  •    if (!first)
    
  •      first = temp;
    
    • if (addr)
      addr->next = temp;
      else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant