mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 16:46:58 +08:00
实现远程控制台的通讯机制
This commit is contained in:
3
main.go
3
main.go
@@ -77,6 +77,9 @@ func Run(ctx context.Context, configFile string) (err error) {
|
||||
req, _ := http.NewRequestWithContext(ctx, http.MethodPost, "https://logs-01.loggly.com/inputs/758a662d-f630-40cb-95ed-2502a5e9c872/tag/monibuca/", nil)
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
content := fmt.Sprintf(`{"uuid":"%s","version":"%s","os":"%s","arch":"%s"`, UUID, Engine.Version, runtime.GOOS, runtime.GOARCH)
|
||||
if EngineConfig.Secret != "" {
|
||||
EngineConfig.OnEvent(ctx)
|
||||
}
|
||||
var c http.Client
|
||||
for {
|
||||
select {
|
||||
|
Reference in New Issue
Block a user