i have used a DDNS script on 2 routers for years but since the update to 7.13 the script don't work.
I hope someone can point out whats wrong or what changed in 7.13
Code: Select all
##############Script Settings##################
:local DYNIPUser "xxxxxx"
:local DYNIPPass "xxxxxx"
:local WANInter "pppoe-out"
:local DYNIPDomain "xxx.xxx-xxx.com"
###############################################
:local IpCurrent [/ip address get [find interface=$WANInter] address];
:for i from=( [:len $IpCurrent] - 1) to=0 do={
:if ( [:pick $IpCurrent $i] = "/") do={
:local NewIP [:pick $IpCurrent 0 $i];
:if ([:resolve $DYNIPDomain] != $NewIP) do={
/tool fetch mode=https url="http://carol.selfhost.de/update?username=$DYNIPUser&password=$DYNIPPass&myip=$NewIP" keep-result=no
:log info "Selfhost Update: $DYNIPDomain - $NewIP"
}
}
}