diff options
author | Karl Palsson <karlp@etactica.com> | 2017-08-30 17:44:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 16:29:22 +0100 |
commit | c58e824acc3c5fcac6ce91584eaf704e99be52ef (patch) | |
tree | 75aee73157d3e44bb9f080de7b66e65f5b07e472 /package/system/uci/Makefile | |
parent | aaa73fea36d71de986aacb4c4622f42d5751c881 (diff) | |
download | upstream-c58e824acc3c5fcac6ce91584eaf704e99be52ef.tar.gz upstream-c58e824acc3c5fcac6ce91584eaf704e99be52ef.tar.bz2 upstream-c58e824acc3c5fcac6ce91584eaf704e99be52ef.zip |
procd: mdns: Support txt values with spaces
Properly quote the arguments so that you can register a service with TXT
entries that contains spaces.
Example:
procd_add_mdns myservice tcp 9999 "key=descriptive text field 1" \
"another=something equally verbose"
Output before:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp local
hostname = [blah.local]
address = [192.168.255.74]
port = [9999]
txt = ["verbose" "equally" "another=something" "1" "field" "text" "key=descriptive"]
Output now:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp local
hostname = [blah.local]
address = [192.168.255.74]
port = [9999]
txt = ["another=something equally verbose" "key=descriptive text field 1"]
Signed-off-by: Karl Palsson <karlp@etactica.com>
(cherry picked from commit 7a423c389a162d2945901f0b5e7c604d36c64526)
Diffstat (limited to 'package/system/uci/Makefile')
0 files changed, 0 insertions, 0 deletions