ddns-scripts: refactor get_current_ip()
authorPaul Donald <newtwen+github@gmail.com>
Mon, 14 Apr 2025 15:12:36 +0000 (17:12 +0200)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Wed, 25 Jun 2025 13:40:21 +0000 (15:40 +0200)
commit9cdd1a1660b655bbdf1076fca7ef5779eb57e3a4
treece5a64a0b00ac26d0589467d0f282f002be13675
parent727cdeff681ee47eb6436350cfb15ab08cf509a0
ddns-scripts: refactor get_current_ip()

Remove the awk based ifconfig output handling violence (omg) and instead
use the ip utility and its JSON output: this uses the available
system utility jsonfilter. Much cleaner and less brittle.

This fixes alias interface handling
Fixes issue #24922

Add dep 'ip' (iproute2: ip-tiny, ip-full)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh