Mercurial > prosody-modules
comparison mod_dnsupdate/mod_dnsupdate.lua @ 5688:429be658c0bb
mod_dnsupdate: Support advertising explicit non-existence of service
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 03 Nov 2023 23:26:57 +0100 |
| parents | 54fa2116bbf3 |
| children | b6e390a97c85 |
comparison
equal
deleted
inserted
replaced
| 5687:4c84cfb586c1 | 5688:429be658c0bb |
|---|---|
| 119 end | 119 end |
| 120 end | 120 end |
| 121 if not opts.remove then | 121 if not opts.remove then |
| 122 for port in ports do print(("add _%s._tcp.%s IN SRV 1 1 %d %s"):format(service, ihost, port, target)); end | 122 for port in ports do print(("add _%s._tcp.%s IN SRV 1 1 %d %s"):format(service, ihost, port, target)); end |
| 123 end | 123 end |
| 124 if ports:empty() then print(("add _%s._tcp.%s IN SRV 0 0 0 ."):format(service, ihost)); end | |
| 124 end | 125 end |
| 125 | 126 |
| 126 print("show"); | 127 print("show"); |
| 127 print("send"); | 128 print("send"); |
| 128 print("answer"); | 129 print("answer"); |
