# HG changeset patch # User Kim Alvefur # Date 1636409221 -3600 # Node ID 3632836f35b031ef3d5d58e5579d3696f7eb478b # Parent a754f7e380b2c721565f8a30d6ec1425c2b3b73d mod_dnsupdate: Restore the --each option diff -r a754f7e380b2 -r 3632836f35b0 mod_dnsupdate/mod_dnsupdate.lua --- a/mod_dnsupdate/mod_dnsupdate.lua Mon Nov 08 23:03:14 2021 +0100 +++ b/mod_dnsupdate/mod_dnsupdate.lua Mon Nov 08 23:07:01 2021 +0100 @@ -104,6 +104,9 @@ for _, rr in ipairs(records) do if ports:contains(rr.srv.port) and target == nameprep(rr.srv.target):gsub("%.$", "") then ports:remove(rr.srv.port) + elseif not opts.each then + print(("del _%s._tcp.%s IN SRV"):format(service, ihost)); + break else print(("del _%s._tcp.%s IN SRV %s"):format(service, ihost, rr)); end