🎨 Update kernel HTTP User-Agent

This commit is contained in:
Daniel 2023-08-03 11:26:54 +08:00
parent b955f3c653
commit 85ad37af0a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 2 deletions

View file

@ -20,6 +20,7 @@ import (
"math/rand"
"os"
"path/filepath"
"runtime"
"time"
"github.com/88250/gulu"
@ -35,7 +36,7 @@ func BootMobile(container, appDir, workspaceBaseDir, lang string) {
initHttpClient()
ServerPort = FixedPort
Container = container
UserAgent = UserAgent + " " + Container
UserAgent = UserAgent + " " + Container + "/" + runtime.GOOS
httpclient.SetUserAgent(UserAgent)
Lang = lang