Skip to content

Commit 29c6b4e

Browse files
committed
add OS field to reported infos
1 parent 391a2d3 commit 29c6b4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hub.go

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func (h *hub) run() {
5757
c.send <- []byte("{\"Version\" : \"" + version + "\"} ")
5858
c.send <- []byte("{\"Commands\" : [\"list\", \"open [portName] [baud] [bufferAlgorithm (optional)]\", \"send [portName] [cmd]\", \"sendnobuf [portName] [cmd]\", \"close [portName]\", \"bufferalgorithms\", \"baudrates\", \"restart\", \"exit\", \"program [portName] [board:name] [$path/to/filename/without/extension]\", \"programfromurl [portName] [board:name] [urlToHexFile]\"]} ")
5959
c.send <- []byte("{\"Hostname\" : \"" + *hostname + "\"} ")
60+
c.send <- []byte("{\"OS\" : \"" + runtime.GOOS + "\"} ")
6061
case c := <-h.unregister:
6162
delete(h.connections, c)
6263
// put close in func cuz it was creating panics and want

0 commit comments

Comments
 (0)