Skip to content

Commit 61cac06

Browse files
committed
Fix data reporting for IDE Pluggable discovery
1 parent 246e9e6 commit 61cac06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func newBoardPortJSON(port *dnssd.Service) *boardPortJSON {
121121

122122
portJSON := &boardPortJSON{
123123
Address: ip,
124-
Label: ip,
124+
Label: port.Name + " at " + ip,
125125
Protocol: "network",
126126
ProtocolLabel: "Network Port",
127127
Prefs: prefs,
@@ -132,6 +132,10 @@ func newBoardPortJSON(port *dnssd.Service) *boardPortJSON {
132132
portJSON.Prefs.Set("port", strconv.Itoa(port.Port))
133133
for key, value := range port.Text {
134134
portJSON.Prefs.Set(key, value)
135+
if key == "board" {
136+
// duplicate for backwards compatibility
137+
identificationPrefs.Set(".", value)
138+
}
135139
}
136140
return portJSON
137141
}

0 commit comments

Comments
 (0)