Skip to content

Commit cf149fa

Browse files
authored
Merge pull request #321 from arduino/osinfo
Return info about the system
2 parents fcb613a + da67d01 commit cf149fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

info.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"runtime"
45
"strings"
56

67
"github.com/gin-gonic/gin"
@@ -20,6 +21,7 @@ func infoHandler(c *gin.Context) {
2021
"wss": "wss://localhost" + portSSL,
2122
"origins": origins,
2223
"update_url": updateUrl,
24+
"os": runtime.GOOS + ":" + runtime.GOARCH,
2325
})
2426
}
2527

0 commit comments

Comments
 (0)