diff options
author | Erich Eckner <git@eckner.net> | 2020-06-06 20:48:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-06 20:48:48 +0200 |
commit | 99f178a52f420cc419387b1a1da312c56dad4e79 (patch) | |
tree | b9760304ec0c578ce2de4cf3a9b738fb144c8375 | |
parent | 5319dd280fe7e3189c4fe4cd3c5e6ddd53c70178 (diff) | |
download | arch-mirror-99f178a52f420cc419387b1a1da312c56dad4e79.tar.xz |
arch-mirror: prefer ipv4
-rwxr-xr-x | arch-mirror | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-mirror b/arch-mirror index 9dc9fea..9fb1c1c 100755 --- a/arch-mirror +++ b/arch-mirror @@ -11,7 +11,7 @@ fi mirror_dir='/srv/http/arch' -rsync_options='-rtlHp --safe-links --timeout=600 --contimeout=60 --delay-updates --no-motd --temp-dir='"${mirror_dir}"'/.tmp --exclude .tmp --exclude .~tmp~' +rsync_options='-rtlHp4 --safe-links --timeout=600 --contimeout=60 --delay-updates --no-motd --temp-dir='"${mirror_dir}"'/.tmp --exclude .tmp --exclude .~tmp~' if stty &>/dev/null; then rsync_verbose='-v' @@ -79,7 +79,7 @@ retrieve_content() { rsync ${rsync_options} ${rsync_verbose} ${extra_options} "${url}" "${destination}" ;; 'https'|'http') - wget --mirror -nH -np ${wget_verbose} -P "${destination}" --cut-dirs $( + wget --mirror --prefer-family=Ipv4 -nH -np ${wget_verbose} -P "${destination}" --cut-dirs $( echo "${url#*//}" \ | tr -d '\n' \ | tr '/' '\n' \ |