mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-04-05 12:49:36 +00:00
dhcp-to-dns: remove unused variable
This commit is contained in:
parent
460508c931
commit
428478e690
1 changed files with 0 additions and 1 deletions
|
|
@ -51,7 +51,6 @@
|
|||
active-address=($DnsRecordVal->"address") server=($DnsRecordInfo->"server") status=bound ] ] > 0) do={
|
||||
$LogPrint debug $ScriptName ("Lease for " . $MacInServer . " (" . $DnsRecordVal->"name" . ") still exists. Not deleting record.");
|
||||
} else={
|
||||
:local Found false;
|
||||
$LogPrint info $ScriptName ("Lease expired for " . $MacInServer . ", deleting record (" . $DnsRecordVal->"name" . ").");
|
||||
/ip/dns/static/remove $DnsRecord;
|
||||
/ip/dns/static/remove [ find where type=CNAME comment=($DnsRecordVal->"comment") ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue