]> git.99rst.org Git - openwrt-packages.git/commit
ddns-scripts: add curl source IP bind fallback
authorJiang Tengfei <redacted>
Fri, 26 Jun 2026 14:33:11 +0000 (22:33 +0800)
committerFlorian Eckert <redacted>
Tue, 7 Jul 2026 06:02:21 +0000 (08:02 +0200)
commit9a5e6063f17bd9f643631ed2fff3ec5236e221dd
tree32a44308d219f53d4b3e1fe1ab8a34b142c9ecb2
parent4b136c0bcbd6f725dccd5a9af60629275b6bcad4
ddns-scripts: add curl source IP bind fallback

Keep the existing cURL bind_network behavior of binding to the
logical device first. This preserves the behavior introduced for
PPPoE and multi-WAN setups where the selected network must also be
used for the DDNS update request.

Some setups can still fail when libcurl binds directly to the logical
PPP device. In that case the transfer may time out even though binding
to the source address of the same network succeeds. This can make DDNS
updates fail repeatedly on affected systems.

Retry cURL transfers once with the network source IP when the
device-bound transfer fails. This leaves the normal path unchanged,
keeps the update request on the same network, and matches the existing
GNU Wget behavior which already binds to the network IP address.

Also document the implicit bind_network default and the cURL fallback
in the sample configuration.

Signed-off-by: Jiang Tengfei <redacted>
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh
net/ddns-scripts/samples/ddns.config_sample
git clone https://git.99rst.org/PROJECT