Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xddns-update6
1 files changed, 1 insertions, 5 deletions
diff --git a/ddns-update b/ddns-update
index 7bfabf9..054521c 100755
--- a/ddns-update
+++ b/ddns-update
@@ -11,12 +11,8 @@ set -e
if [ $# -eq 1 ]; then
if [ "${1%.*}" != "$1" ]; then
ipver='A'
- lft=''
- rt=''
elif [ "${1%:*}" != "$1" ]; then
ipver='AAAA'
- lft='['
- rt=']'
else
exit
fi
@@ -26,7 +22,7 @@ if [ $# -eq 1 ]; then
-L \
-o /dev/null \
--connect-timeout 10 \
- --resolve "pool.mirror.archlinux32.org:80:${lft}$1${rt}" \
+ --resolve "pool.mirror.archlinux32.org:80:$1" \
-s 'http://pool.mirror.archlinux32.org/i686/')" != '200' ]; then
exit
fi