wget does not support link-scoped IPv6 literal addresses

Bug #1580521 reported by Brian Candler on 2016-05-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wget (Ubuntu)
Undecided
Unassigned

Bug Description

Inside an lxd container with default profile you get this error with wget:

root@first:~# wget http://nsrc.org/
Error parsing proxy URL http://[fe80::1%eth0]:13128: Invalid IPv6 numeric address.

root@first:~# echo $http_proxy
http://[fe80::1%eth0]:13128

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::1%eth0]:13128 wget http://nsrc.org/
Error parsing proxy URL http://[fe80::1%eth0]:13128: Invalid IPv6 numeric address.

(*)
=== /etc/default/lxd ===

# Run a minimal HTTP PROXY server
LXD_IPV6_PROXY="true"

=== /usr/lib/lxd/lxd-bridge ===

    [ "${HAS_IPV6}" = "true" ] && [ "${LXD_IPV6_PROXY}" = "true" ] && ip addr add fe80::1/64 dev "${1}"

=== /usr/lib/lxd/profile-config ===

        if [ "${LXD_IPV6_PROXY}" = "true" ]; then
            lxc profile set default environment.http_proxy "http://[fe80::1%eth0]:13128" --force-local || true
        fi

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: wget 1.17.1-1ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
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)

Brian Candler (b-candler) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers