server: do not allow a session to setup UDP tracks from different IPs

This commit is contained in:
aler9
2021-09-23 19:12:46 +02:00
parent 84837b9751
commit 7ac0d79ae9
2 changed files with 24 additions and 14 deletions

View File

@@ -257,3 +257,11 @@ type ErrServerPathHasChanged struct {
func (e ErrServerPathHasChanged) Error() string {
return fmt.Sprintf("path has changed, was '%s', now is '%s'", e.Prev, e.Cur)
}
// ErrServerCannotSetupFromDifferentIPs is an error that can be returned by a server.
type ErrServerCannotSetupFromDifferentIPs struct{}
// Error implements the error interface.
func (e ErrServerCannotSetupFromDifferentIPs) Error() string {
return "cannot setup tracks from different IPs"
}