charlie2alpha
Senior Member
Sorry was busy with work the past few days. First of all, use the update interface from this page. The http links you find there you use them like I do in my own very simple /jffs/scripts/ddns-start script:I find the issue... When i call the curl script, I get an IPv4 address even though I configured an AAAA ... Basically it gets overwritten to an IP v4... Any idea on how to avoid this? How do I catch the ipv6 address in the ddns-start script? Because i can pass it manually I understand..
Sent from my SM-G960F using Tapatalk
Code:
#!/bin/sh
/usr/sbin/curl -s https://sync.afraid.org/u/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ >/dev/null 2>&1
/usr/sbin/curl -s http://v6.sync.afraid.org/u/vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv/ >/dev/null 2>&1
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi