diff options
author | Erich Eckner <git@eckner.net> | 2018-07-10 09:54:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-10 09:54:13 +0200 |
commit | b12c47aed380806dc17957d33e886179dff1cf37 (patch) | |
tree | 3123d28d3d6ec8d8ec5f90a46001d876faedb2d2 /ddns-update | |
parent | 0fd2f54b5413a5cabb2e3f369a1c6dd196f1f94e (diff) | |
download | devops-b12c47aed380806dc17957d33e886179dff1cf37.tar.xz |
ddns-update: omit brackets around ipv6 addresses
Diffstat (limited to 'ddns-update')
-rwxr-xr-x | ddns-update | 6 |
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 |