🐛 User Agent 初始化

This commit is contained in:
Liang Ding 2022-07-20 09:32:10 +08:00
parent d06ebab62f
commit 1888165108
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 5 additions and 3 deletions

View file

@ -55,7 +55,6 @@ func Boot() {
IncBootProgress(3, "Booting...")
rand.Seed(time.Now().UTC().UnixNano())
initMime()
httpclient.SetUserAgent(UserAgent)
workspacePath := flag.String("workspace", "", "dir path of the workspace, default to ~/Documents/SiYuan/")
wdPath := flag.String("wd", WorkingDir, "working directory of SiYuan")
@ -84,6 +83,9 @@ func Boot() {
Container = "docker"
}
UserAgent = UserAgent + " " + Container
httpclient.SetUserAgent(UserAgent)
initWorkspaceDir(*workspacePath)
SSL = *ssl