Skip to content

Commit da67d01

Browse files
committed
Return info about the system
1 parent fcb613a commit da67d01

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)