Skip to content

Commit

Permalink
Reverse changes made in PR 1831 (https://github.com/mikebrady/shairpo…
Browse files Browse the repository at this point in the history
…rt-sync/pull/1831/files) -- issue identified in Issue 1856 (#1856).
  • Loading branch information
mikebrady committed May 23, 2024
1 parent 6973eae commit e0b1382
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ typedef struct {

/*
#define MDNS_RECORD_WITH_METADATA \
"tp=UDP", "sm=false", "ek=1", "et=0,1", "ch=2", METADATA_EXPRESSION, "ss=16", \
"tp=UDP", "sm=false", "ek=1", "et=0,1", "cn=0,1", "ch=2", METADATA_EXPRESSION, "ss=16", \
"sr=44100", "vn=3", "txtvers=1", config.password ? "pw=true" : "pw=false"
*/
#define MDNS_RECORD_WITH_METADATA \
"sf=0x4", "fv=76400.10", "am=ShairportSync", "vs=105.1", "tp=TCP,UDP", "vn=65537", \
METADATA_EXPRESSION, "ss=16", "sr=44100", "da=true", "sv=false", "et=0,1", "ek=1", \
"ch=2", "txtvers=1", config.password ? "pw=true" : "pw=false"
"cn=0,1", "ch=2", "txtvers=1", config.password ? "pw=true" : "pw=false"

#endif

Expand All @@ -52,7 +52,7 @@ typedef struct {

#define MDNS_RECORD_WITHOUT_METADATA \
"sf=0x4", "fv=76400.10", "am=ShairportSync", "vs=105.1", "tp=TCP,UDP", "vn=65537", "ss=16", \
"sr=44100", "da=true", "sv=false", "et=0,1", "ek=1", "ch=2", "txtvers=1", \
"sr=44100", "da=true", "sv=false", "et=0,1", "ek=1", "cn=0,1", "ch=2", "txtvers=1", \
config.password ? "pw=true" : "pw=false"

#endif // _MDNS_H
3 changes: 2 additions & 1 deletion rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void build_bonjour_strings(__attribute((unused)) rtsp_conn_info *conn) {
snprintf(pkString, sizeof(pkString), "pk=");
pkString_make(pkString + strlen("pk="), sizeof(pkString) - strlen("pk="),
config.airplay_device_id);

txt_records[entry_number++] = "cn=0,1";
txt_records[entry_number++] = "da=true";
txt_records[entry_number++] = "et=0,1";
txt_records[entry_number++] = ap1_featuresString;
Expand Down Expand Up @@ -310,6 +310,7 @@ void build_bonjour_strings(__attribute((unused)) rtsp_conn_info *conn) {
txt_records[entry_number++] = "sv=false";
txt_records[entry_number++] = "et=0,1";
txt_records[entry_number++] = "ek=1";
txt_records[entry_number++] = "cn=0,1";
txt_records[entry_number++] = "ch=2";
txt_records[entry_number++] = "txtvers=1";
if (config.password == 0)
Expand Down

0 comments on commit e0b1382

Please sign in to comment.