Skip to content

Commit

Permalink
fix restyled-io and ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xylophone21 committed Feb 15, 2022
1 parent ab35612 commit 9d5dc54
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ public void publish(
NsdServiceInfo serviceInfo = new NsdServiceInfo();
serviceInfo.setServiceName(serviceName);

/**
* Note, subtypes registration is using an undocumented feature of android nds-sd service/mDNSResponder
* which MAY STOP WORKING in future Android versions
* Here, set type = "${tyep},${subtypes1},${subtypes2},...", then subtypes1, subtypes2 etc
* are all registered to this dns-sd server, we can usd `dns-sd -B ${type},${subtypes}` or avahi-browse ${subtypes}._sub.${type} -r to browser it
*/
/**
* Note, subtypes registration is using an undocumented feature of android nds-sd
* service/mDNSResponder which MAY STOP WORKING in future Android versions. Here, set type =
* "${tyep},${subtypes1},${subtypes2},...", then subtypes1, subtypes2 etc are all registered to
* this dns-sd server, we can usd `dns-sd -B ${type},${subtypes}` or avahi-browse
* ${subtypes}._sub.${type} -r to browser it
*/
StringBuilder sb = new StringBuilder(type);
for (String subType : subTypes) {
sb.append(",").append(subType);
Expand Down

0 comments on commit 9d5dc54

Please sign in to comment.