ddns-scripts: get l3 device for bind network using curl
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 22 Jun 2021 08:07:22 +0000 (10:07 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 22 Jun 2021 08:24:49 +0000 (10:24 +0200)
commit1e01952ce87ae6046ab8893bf8e852bf865bab9d
tree69829dee3ad15f6d05abaf2bf33cb5b5e34616c3
parent99f838dd6d69d54e6387df1e91374403a7942ace
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'.

The script uses '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.

This was reported by the github user `welderpb` with P/R:
 https://github.com/openwrt/packages/pull/14431

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 036079b308a6e1ba1ac690a1643264696780ae5e)
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh