p910nd: init: add txtvers=1 to mDNS properties

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 <newtwen@gmail.com>
This commit is contained in:
Paul Donald 2024-02-11 18:33:03 +01:00
parent d939c5c3aa
commit 55d00e3821
1 changed files with 1 additions and 0 deletions

View File

@ -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"