severity 502564 wishlist
thanks

#include <hallo.h>
* Michael Guntsche [Sat, Oct 18 2008, 12:01:12AM]:
> Package: apt-cacher-ng
> Version: 0.3.2-1
> Severity: minor
> 
> If you connect to the server you notice that the IP-address of the proxy
> server ($SERVERIP) is wrong.
> 
> Example: Acquire::http { Proxy "http://[::ffff:192.168.0.127]:3142";; };
> 
> As you can see it seems to be a mix of IPV6 and IPV4. It does not affect

It is a not a "wrong mix" of IPv4 and IPv6 but a hybrid. And actually,
it's a valid IPv6 address because IPv6 embeds the whole IPv4 address
space. Apt-cacher-ng gets this host name directly from the operating
system.

However, in this case we see the uber-optimistic strategy of the OS,
displaying every hostname/IP as the IPv6 version as soon as the IPv6
support is enabled and is somehow related to your issue. Something I
don't really like on Linux.

I will try to add some workaround (cropping the hostname string to the
IPv4 part) but this task has really low priority.

> the functionality of the package itself, but of course the link to
> the browseable documentation is wrong. 

Then please show me THAT link. IIRC you need to install a http daemon
with some default configuration (Debian's apache2 or so) to read the
docs online.

> If you specify an address apt-cacher-ng should bind to it changes to.
> 
> Acquire::http { Proxy "http://[192.168.0.127]:3142";; };

And what is your question/problem with that?

If you wonder about why it's not a IPv6 address anymore, then the
answer is: because it is no longer a hybrid (IPv6/IPv4) socket. ACNG
retrieves the socket descriptions from the OS. If you don't specify
address(es) to bind to, the OS provides descriptions for hybrid sockets
(results of that seen above). If you specify hostnames/addresses, ACNG
requests appropriate socket descriptions from the OS and creates socket
for that descriptions. So eventually, for a pure V4 IP address you get a
pure V4 socket.

If you are confused about square brackets in the URL, well, they don't
hurt with any V6 aware application (i.e. apt client) but they are not
nice either and should better be removed where possible. Should be fixed
in near future.

Regards,
Eduard.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to