Skip to content

Commit 70e145e

Browse files
committed
add bonjour name as IdProduct
1 parent 182cce7 commit 70e145e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func getPorts() ([]OsSerialPort, error) {
125125
arrPorts := []OsSerialPort{}
126126
go func(results chan *bonjour.ServiceEntry, exitCh chan<- bool) {
127127
for e := range results {
128-
arrPorts = append(arrPorts, OsSerialPort{Name: e.AddrIPv4.String(), IdVendor: strings.Join(e.Text[:], " "), NetworkPort: true})
128+
arrPorts = append(arrPorts, OsSerialPort{Name: e.AddrIPv4.String(), IdProduct: e.Instance, IdVendor: strings.Join(e.Text[:], " "), NetworkPort: true})
129129
}
130130
timeout <- true
131131
}(results, resolver.Exit)

0 commit comments

Comments
 (0)