Interfaces (#97)
* create interface * move room manager to interface * interfaces * updates * fix loop * fix fakes * remove node types
This commit is contained in:
+2
-2
@@ -96,11 +96,11 @@ func NewTurnServer(conf *config.Config, roomStore RoomStore, node routing.LocalN
|
||||
func newTurnAuthHandler(roomStore RoomStore) turn.AuthHandler {
|
||||
return func(username, realm string, srcAddr net.Addr) (key []byte, ok bool) {
|
||||
// room id should be the username, create a hashed room id
|
||||
rm, err := roomStore.GetRoom(username)
|
||||
rm, err := roomStore.LoadRoom(username)
|
||||
if err != nil {
|
||||
return nil, false
|
||||
}
|
||||
|
||||
return turn.GenerateAuthKey(username, livekitRealm, rm.TurnPassword), true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user