aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-01-27 10:00:02 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-11-13 21:15:38 +0100
commit534b71d3e276ed537471773fd6f627431674d8d1 (patch)
tree3dd0d23facddecb060b1efefe2094474209fb6e0
parent5d2a1223230f808ae3db69c6523aba3a27ee8b04 (diff)
downloadpacredir-534b71d3e276ed537471773fd6f627431674d8d1.tar.gz
pacredir-534b71d3e276ed537471773fd6f627431674d8d1.tar.zst
use different addresses in pacman configuration snippet
Now that pacredir answers requests on 127.0.0.0/8... Make sure we do not confuse pacman by using default loopback address, which could host other repositories.
-rw-r--r--README.md2
-rw-r--r--pacman/pacredir4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 11cbeb2..61ec592 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,7 @@ definitions in `pacman.conf`:
Do not worry if `pacman` reports:
-> error: failed retrieving file 'core.db' from 127.0.0.1:7077 : The
+> error: failed retrieving file 'core.db' from 127.70.77.1:7077 : The
> requested URL returned error: 404 Not Found
This is ok, it just tells `pacman` that `pacredir` could not find a file
diff --git a/pacman/pacredir b/pacman/pacredir
index 9df0184..a14ccd6 100644
--- a/pacman/pacredir
+++ b/pacman/pacredir
@@ -2,9 +2,9 @@
# This is a regular server, so pacredir receives requests for database
# files, but it is also accounted for server error limit.
-Server = http://127.0.0.1:7077/
+Server = http://127.70.77.1:7077/
# Add a cache server with different address to make sure pacman requests
# package files from pacredir in case the address above was caught by
# pacman's server error limit.
-CacheServer = http://127.0.0.2:7077/
+CacheServer = http://127.70.77.2:7077/