ddns-scripts: get l3 device for bind network using curl
authorCoia Prant <coiaprant@gmail.com>
Wed, 15 Jan 2025 16:21:53 +0000 (16:21 +0000)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 24 Jan 2025 11:57:45 +0000 (12:57 +0100)
commit9cd00fb1916812beaa46be44203b46f6b5615f97
tree55714b7ab70cbada775bfa76b252ebee3b2cdc1f
parenta36979c6944323d6d6ac91dd8208f7c783ebc21d
ddns-scripts: get l3 device for bind network using curl

If pppoe is used for wan access. script set 'eth1' as interface for curl
call. The correct interface is however 'pppoe-wan'.

These scripts use 'network_get_physdev' function to get real device for
bind_network but this is wrong. We need instead the l3_device of the the
logical interface.

In case if we don't use pppoe connection - 'l3_device' is equal to real device.

Follow P/R:
 #14431

Signed-off-by: Coia Prant <coiaprant@gmail.com>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_cloudflare_com_v4.sh
net/ddns-scripts/files/usr/lib/ddns/update_dnspod_cn.sh
net/ddns-scripts/files/usr/lib/ddns/update_dnspod_cn_v3.sh
net/ddns-scripts/files/usr/lib/ddns/update_godaddy_com_v1.sh
net/ddns-scripts/files/usr/lib/ddns/update_luadns_v1.sh