Skip to content

Commit

Permalink
Merge pull request #299 from itviewer/dev
Browse files Browse the repository at this point in the history
添加 AnyLink 客户端 macOS 类型判断
  • Loading branch information
bjdgyc authored Mar 4, 2024
2 parents 0f8877b + a4fd176 commit 2b24e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/dbdata/user_act_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (ua *UserActLogProcess) ParseUserAgent(userAgent string) (os_idx, client_id
os_idx = 0
if strings.Contains(userAgent, "windows") {
os_idx = 1
} else if strings.Contains(userAgent, "mac os") || strings.Contains(userAgent, "darwin_i386") {
} else if strings.Contains(userAgent, "mac os") || strings.Contains(userAgent, "darwin_i386") || strings.Contains(userAgent, "darwin_amd64") || strings.Contains(userAgent, "darwin_arm64") {
os_idx = 2
} else if strings.Contains(userAgent, "darwin_arm") || strings.Contains(userAgent, "apple") {
os_idx = 5
Expand Down

0 comments on commit 2b24e53

Please sign in to comment.