Hello, On Sat, 16 Sep 2023, at 17:46, Helmut Grohne wrote: > > 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?
The patch does work for me, thanks. I suspect a better fix, especially given the escaping problem you have highlighted, would be just to pass through the DNS name to connect to. For where 'apt-proxy' is a CNAME or are A/AAAA records, then probably just returning 'apt-proxy' is the right thing to do. For SRV records, I think all that needs to be done is to return the target. Do you think this would be suitable? Happy to put it together myself, but it would be great if Antonio Terceiro could chip in. Thanks