fix: pass login ip

This commit is contained in:
Derrick Hammer 2024-02-26 08:30:17 -05:00
parent 355033634d
commit b3d63007e1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ func (s *S5API) accountRegister(jc jape.Context) {
return return
} }
jwt, err := s.accounts.LoginPubkey(rawPubkey) jwt, err := s.accounts.LoginPubkey(rawPubkey, jc.Request.RemoteAddr)
if err != nil { if err != nil {
s.sendErrorResponse(jc, NewS5Error(ErrKeyAuthenticationFailed, err)) s.sendErrorResponse(jc, NewS5Error(ErrKeyAuthenticationFailed, err))
return return