@
makaflow 把下面的"
ipv6.xxxxx.com"改成你的 ipv6 域名,ovpn-out-ipv6 改成你对应的接口。然后设置定时脚本即可。
------------------------------------------------------------------------------
:local domain "
ipv6.xxxxx.com"
:local serveripv6 [:resolve $domain server=119.29.29.29]
:local recordip [interface/ovpn-client/get ovpn-out-ipv6 connect-to]
#set-ovpn-serveripv6
:if ($serveripv6!=$recordip) do={
interface/ovpn-client/set ovpn-out-ipv6 connect-to=$serveripv6
:log info ("ovpn-ipv6 CHANGE [".$domain."] CHANGE FORM [".$recordip."] TO [".$serveripv6."]")
} else={
# :log info ("ovpn-ipv6 [".$domain."] KEEP [".$recordip."]")
}