看看这个DDNS脚本有问题吗
:local Nether:local Status
:local Ddnshostip
:local Upddns "yes"
:local Ddnsname "用户"
:local Ddnspass "密码"
:local Ddnshost "域名"
:set Ddnshostip [:resolve $Ddnshost]
:if (([:typeof $Ddnshostip] = "ip")) do={
:foreach i in= do={
:set Nether
:set Status running]
:if ($Status=true) do={
:if ( interface] = $Nether) do={
:set Nether address]
:set Nether [:pick $Nether 0 [:find $Nether "/"]]
:if ($Ddnshostip = $Nether) do={:set Upddns "no"}
}
}
}
}
:if ($Upddns = "yes") do={/tool dns-update name=$Ddnshost address=127.0.0.255 key-name=$Ddnsname key=$Ddnspass}
页:
[1]