[arch-projects] [devtools] [PATCH v2 1/1] arch-nspawn: ignore localhost for repository mirror
Christian Hesse
list at eworm.de
Mon Jul 23 07:48:08 UTC 2018
Erich Eckner <arch at eckner.net> on Mon, 2018/07/23 09:20:
> On 23.07.2018 09:16, Christian Hesse wrote:
> > From: Christian Hesse <mail at eworm.de>
> >
> > My system has a mirror configuration where only the host can access a
> > local caching service on localhost. So ignore localhost urls.
>
> I'm curious, how this can happen / why this is desirable. Shouldn't the
> client be able to access the same network resources as the host?
> In general, my feeling is, that it is rather desired to repair the
> caching for the client than skipping it.
The host is running pacredir [0][1], which listens on localhost and redirects
to hosts it found on local network. But pacredir returning 404 is a valid
answer, it just means the file is not available in local network. In this
case pacman just uses the next mirror.
In fact pacredir is accessible form client, but things would break
as it has just this single server configured. There is no fallback to a real
mirror that has all the files required.
[0] https://www.archlinux.org/packages/community/x86_64/pacredir/
[1] https://github.com/eworm-de/pacredir#pacredir
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];)
putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20180723/c7d94bb8/attachment.sig>
More information about the arch-projects
mailing list