aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2024-02-11 18:33:03 +0100
committerRosen Penev <rosenp@gmail.com>2024-02-11 15:48:49 -0800
commit069cc8dc810f10e04abc239727b582e34053d6f1 (patch)
tree6755f16ecf92c23e3e4bdeccc0abee48b3e652d5 /net
parentffa1bbbe7844aca3ae465cc7f1ba018cc4590579 (diff)
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>
Diffstat (limited to 'net')
1 files changed, 1 insertions, 0 deletions
diff --git a/net/p910nd/files/p910nd.init b/net/p910nd/files/p910nd.init
index 1c305a80f..921a59541 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"