Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
auth: change interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jul 8, 2018
1 parent 647f247 commit df36d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ type Response struct {
Integrity stun.MessageIntegrity
}

func (s *Static) Auth(r *Request) (stun.MessageIntegrity, error) {
func (s *Static) Auth(realm stun.Realm, username stun.Username) (stun.MessageIntegrity, error) {
s.mux.RLock()
i := s.credentials[r.Username.String()]
i := s.credentials[username.String()]
s.mux.RUnlock()
return i, nil
}
Expand Down

0 comments on commit df36d7d

Please sign in to comment.