merged with fixes
This commit is contained in:
parent
a9e758b712
commit
2f1818d656
176 changed files with 9000 additions and 907 deletions
|
|
@ -315,6 +315,9 @@ func (s *captureAuthService) UpdateAuthKeyClientInfo(_ context.Context, authKeyI
|
|||
if info.AppVersion != "" {
|
||||
current.AppVersion = info.AppVersion
|
||||
}
|
||||
if info.IP != "" {
|
||||
current.IP = info.IP
|
||||
}
|
||||
s.authKeyClientInfos[authKeyID] = current
|
||||
for i := range s.authorizations {
|
||||
if s.authorizations[i].AuthKeyID != authKeyID {
|
||||
|
|
@ -335,6 +338,9 @@ func (s *captureAuthService) UpdateAuthKeyClientInfo(_ context.Context, authKeyI
|
|||
if info.AppVersion != "" {
|
||||
s.authorizations[i].AppVersion = info.AppVersion
|
||||
}
|
||||
if info.IP != "" {
|
||||
s.authorizations[i].IP = info.IP
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue