Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1168449
| From | Helmut Grohne <helmut@subdivi.de> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1034472: reportbug: auto-apt-proxy prints IPv6 literally incorrectly |
| Date | 2023-09-16 19:00 +0200 |
| Message-ID | <HeGOd-9prV-3@gated-at.bofh.it> (permalink) |
| References | <Gl7Ed-2owX-5@gated-at.bofh.it> <Gl7Ed-2owX-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Control: tags -1 + patch
On Sun, Apr 16, 2023 at 11:08:30AM +0100, Alexander Clouter wrote:
> Though the package functions perfectly (thanks!) when you just run
> auto-apt-proxy on its own, the IPv6 literal is incorrectly concatenated
> to the port.
>
> It should emit:
>
> http://[fd69:dead:beef:1::1]:3142
>
> My local setup has apt-cacher-ng running at apt-proxy:
> ----
> alex@sarasti:~$ dig ANY apt-proxy
>
> ; <<>> DiG 9.18.12-1-Debian <<>> ANY apt-proxy
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33640
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 65494
> ;; QUESTION SECTION:
> ;apt-proxy. IN ANY
>
> ;; ANSWER SECTION:
> apt-proxy. 0 IN AAAA fd69:dead:beef:1::1
> apt-proxy. 0 IN A 192.168.1.1
>
> ;; Query time: 16 msec
> ;; SERVER: 127.0.0.53#53(127.0.0.53) (TCP)
> ;; WHEN: Sun Apr 16 11:00:14 BST 2023
> ;; MSG SIZE rcvd: 82
>
> alex@sarasti:~$ auto-apt-proxy
> http://fd69:dead:beef:1::1:3142
> ----
>
> If you need anything else, do ask.
I also experience this problem. I'm attaching a patch that makes it work
for me, but I am unsure whether the patch is universally correct as it
may need some quoting of the ip in "Acquire::http::Proxy::${ip}=DIRECT"
if the ip contains "::". In my case, the ip does not and therefore it
works. Could you give the patch a try in your environment where "::"
does happen?
Helmut
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#1034472: reportbug: auto-apt-proxy prints IPv6 literally incorrectly Helmut Grohne <helmut@subdivi.de> - 2023-09-16 19:00 +0200 Bug#1034472: reportbug: auto-apt-proxy prints IPv6 literally incorrectly "Alexander Clouter" <alex@digriz.org.uk> - 2023-09-18 21:20 +0200
csiph-web