Package: aria2
Version: 1.12.1-2
Tags: ipv6

        Apparently, aria2c(1) doesn't allow for an IPv6 HTTP proxy.

        I've identified the following two cases:

        • should the HTTP proxy's host name (as per, e. g., the
          http_proxy environment variable) resolve to both IPv6 and
          legacy IPv4 addresses (IOW, has both AAAA and A DNS records),
          aria2c(1) will try to use the IPv4 address unconditionally,
          like:

$ http_proxy=http://httpproxy.example.net:3128/ \
      strace -t -- \
      aria2c --log= http://www.google.com/ \
      2>&1 | grep -F -A1 -- connect\( 
05:02:29 connect(6, {sa_family=AF_INET6, sin6_port=htons(53), 
inet_pton(AF_INET6, "2001:db8::d:17:5", &sin6_addr), sin6_flowinfo=0, 
sin6_scope_id=0}, 28) = 0
05:02:29 sendto(6, "}I\1\0\0\1\0\0\0\0\0\0\thttpproxy\7example\3ne"..., 39, 
MSG_NOSIGNAL, NULL, 0) = 39
--
05:02:29 connect(6, {sa_family=AF_INET, sin_port=htons(3128), 
sin_addr=inet_addr("192.0.2.34")}, 16) = -1 EINPROGRESS (Operation now in 
progress)
05:02:29 epoll_ctl([…]) = 0
--
05:02:29 connect(6, {sa_family=AF_INET6, sin6_port=htons(53), 
inet_pton(AF_INET6, "2001:db8::d:17:5", &sin6_addr), sin6_flowinfo=0, 
sin6_scope_id=0}, 28) = 0
05:02:29 sendto(6, "\303v\1\0\0\1\0\0\0\0\0\0\thttpproxy\7example\3ne"..., 39, 
MSG_NOSIGNAL, NULL, 0) = 39
--
05:02:29 connect(6, {sa_family=AF_INET, sin_port=htons(3128), 
sin_addr=inet_addr("192.0.2.34")}, 16) = -1 EINPROGRESS (Operation now in 
progress)
05:02:29 epoll_ctl([…]) = 0
--
[…]
$ 

        • should the HTTP proxy paramenter be set to reference an IPv6
          address directly, aria2c(1) will simply silently (the only
          message would be in the log file, not created by default, and
          at the level of DEBUG) ignore it, and will try to contact the
          server hosting the resource specified directly:

$ http_proxy=http://\[2001:db8::222\]:3128/ \
      strace -t -- \
      aria2c --log= http://www.google.com/ \
      2>&1 | grep -F -A1 -- connect\( 
05:11:08 connect(6, {sa_family=AF_INET6, sin6_port=htons(53), 
inet_pton(AF_INET6, "2001:db8::d:17:5", &sin6_addr), sin6_flowinfo=0, 
sin6_scope_id=0}, 28) = 0
05:11:08 sendto(6, 
"\203\247\1\0\0\1\0\0\0\0\0\0\3www\6google\3com\0\0\1\0\1"..., 32, 
MSG_NOSIGNAL, NULL, 0) = 32
--
05:11:08 connect(6, {sa_family=AF_INET, sin_port=htons(80), 
sin_addr=inet_addr("209.85.169.99")}, 16) = -1 EINPROGRESS (Operation now in 
progress)
05:11:08 epoll_ctl(5, EPOLL_CTL_ADD, 6, {EPOLLIN, {u32=69847744, 
u64=140497040034496}}) = 0
--
05:11:09 connect(7, {sa_family=AF_INET6, sin6_port=htons(53), 
inet_pton(AF_INET6, "2001:db8::d:17:5", &sin6_addr), sin6_flowinfo=0, 
sin6_scope_id=0}, 28) = 0
05:11:09 sendto(7, "o\223\1\0\0\1\0\0\0\0\0\0\3www\6google\2ru\0\0\1\0\1"..., 
31, MSG_NOSIGNAL, NULL, 0) = 31
$ 

-- 
FSF associate member #7257



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to