Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/ddns-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-10 09:54:13 +0200
committerErich Eckner <git@eckner.net>2018-07-10 09:54:13 +0200
commitb12c47aed380806dc17957d33e886179dff1cf37 (patch)
tree3123d28d3d6ec8d8ec5f90a46001d876faedb2d2 /ddns-update
parent0fd2f54b5413a5cabb2e3f369a1c6dd196f1f94e (diff)
ddns-update: omit brackets around ipv6 addresses
Diffstat (limited to 'ddns-update')
-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