wget does not support link-scoped IPv6 literal addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wget (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Inside an lxd container with default profile you get this error with wget:
root@first:~# wget http://
Error parsing proxy URL http://[fe80::
root@first:~# echo $http_proxy
http://[fe80::
The underlying issue is that wget does not support IPv6 literals of the form [address%interface] as used by lxd(*). You can demonstrate this without lxd:
$ wget http://[fe80::1%eth0]/
http://[fe80::1%eth0]/: Invalid IPv6 numeric address.
$ http_proxy=http://[fe80::
Error parsing proxy URL http://[fe80::
(*)
=== /etc/default/lxd ===
# Run a minimal HTTP PROXY server
LXD_IPV6_
=== /usr/lib/
[ "${HAS_IPV6}" = "true" ] && [ "${LXD_IPV6_PROXY}" = "true" ] && ip addr add fe80::1/64 dev "${1}"
=== /usr/lib/
if [ "${LXD_IPV6_PROXY}" = "true" ]; then
lxc profile set default environment.
fi
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: wget 1.17.1-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Wed May 11 10:29:40 2016
InstallationDate: Installed on 2016-05-06 (4 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
SourcePackage: wget
UpgradeStatus: No upgrade log present (probably fresh install)