Skip to content

Commit

Permalink
fix android dns-sd subtype error, and fix manualcode code pair search…
Browse files Browse the repository at this point in the history
… issue
  • Loading branch information
xylophone21 committed Feb 10, 2022
1 parent d25ac4a commit 32186b7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ public void publish(
String[] subTypes) {
NsdServiceInfo serviceInfo = new NsdServiceInfo();
serviceInfo.setServiceName(serviceName);
serviceInfo.setServiceType(type);

StringBuilder sb = new StringBuilder(type);
for (String subType:subTypes) {
sb.append(","+subType);
}
serviceInfo.setServiceType(sb.toString());

serviceInfo.setPort(port);
Log.i(TAG, "publish serviceName=" + serviceName + " type=" + type + " port=" + port);
int cnt = Math.min(textEntriesDatas.length, textEntriesKeys.length);
Expand Down

0 comments on commit 32186b7

Please sign in to comment.