Skip to content

Commit cc8e937

Browse files
committed
dnssd: honour the TXT whitelist file
The txt option sets m_txt_all even when a whitelist file is given, so the plugin exports every TXT record and the file is ignored. Sets m_txt_all only when the option has no argument, so "txt" exports all TXT records and "txt=FILE" exports only the whitelisted keys of the whitelisted services. Upstream-Status: Pending
1 parent d7e1816 commit cc8e937

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/plugins/process/dnssd/src/dnssd.hpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ class DNSSDOptParser : public OptionsParser {
5353
"Activates processing of all txt records. Allow to specify whitelist txt records file "
5454
"(file line format: service.domain,txt_key1,txt_key2,...)",
5555
[this](const char* arg) {
56-
m_txt_all = true;
5756
if (arg != nullptr) {
5857
m_config_file = arg;
58+
} else {
59+
m_txt_all = true;
5960
}
6061
return true;
6162
},

0 commit comments

Comments
 (0)