summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update-ddns.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/update-ddns.in b/update-ddns.in
index 063350d..a6dea00 100644
--- a/update-ddns.in
+++ b/update-ddns.in
@@ -65,9 +65,8 @@ do
fi
ips="$(
- "${ipCmd}" "${ipCmdVer}" addr show ${dev} scope global | \
- grep "^\s*${inetVer}\s.*\sscope\sglobal\s" | \
- awk '{print $2}' | \
+ "${ipCmd}" -o "${ipCmdVer}" addr show ${dev} scope global | \
+ awk '{print $4}' | \
cut -d/ -f1 | \
sort -u
)"