mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: do not allow a session to setup UDP tracks from different IPs
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
Reference in New Issue
Block a user