From 12c0db68676404b37d86df718595d6e602b1f530 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sun, 11 Feb 2024 18:33:03 +0100 Subject: [PATCH] p910nd: init: add txtvers=1 to mDNS properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The spec https://developer.apple.com/bonjour/printing-specification/bonjourprinting-1.2.1.pdf notes: ... if the meaning of any of the TXT record keys is changed, the txtvers value will be incremented. The current value of this key is “1”, and if this key does not exist in the TXT record, the default value of “1” is assumed. The txtvers SHOULD be the first key/value pair in the TXT record. Signed-off-by: Paul Donald (cherry picked from commit 55d00e3821674789d903ea0dfef000a2b4306f24) --- net/p910nd/files/p910nd.init | 1 + 1 file changed, 1 insertion(+) diff --git a/net/p910nd/files/p910nd.init b/net/p910nd/files/p910nd.init index 1c305a80f8..921a595411 100644 --- a/net/p910nd/files/p910nd.init +++ b/net/p910nd/files/p910nd.init @@ -57,6 +57,7 @@ start_p910nd() { # Set initial arguments set -- "pdl-datastream" "tcp" "$((port+9100))" + set -- "$@" "txtvers=1" # bonjourprinting-1.2.1.pdf spec mandates (at least) MFG, MDL, CMD for Socket type [ -n "$mdns_note" ] && set -- "$@" "note=$mdns_note" [ -n "$mdns_ty" ] && set -- "$@" "ty=$mdns_ty" -- 2.30.2