mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: do not allow a client to control a session created with a different IP
This commit is contained in:
@@ -258,12 +258,12 @@ 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{}
|
||||
// ErrServerCannotUseSessionCreatedByOtherIP is an error that can be returned by a server.
|
||||
type ErrServerCannotUseSessionCreatedByOtherIP struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerCannotSetupFromDifferentIPs) Error() string {
|
||||
return "cannot setup tracks from different IPs"
|
||||
func (e ErrServerCannotUseSessionCreatedByOtherIP) Error() string {
|
||||
return "cannot use a session created with a different IP"
|
||||
}
|
||||
|
||||
// ErrServerUDPPortsAlreadyInUse is an error that can be returned by a server.
|
||||
|
Reference in New Issue
Block a user