mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
server: send status 461 instead of error when multicast is used
This commit is contained in:
@@ -493,8 +493,8 @@ func (sc *ServerConn) handleRequest(req *base.Request) (*base.Response, error) {
|
|||||||
|
|
||||||
if th.Delivery != nil && *th.Delivery == base.StreamDeliveryMulticast {
|
if th.Delivery != nil && *th.Delivery == base.StreamDeliveryMulticast {
|
||||||
return &base.Response{
|
return &base.Response{
|
||||||
StatusCode: base.StatusBadRequest,
|
StatusCode: base.StatusUnsupportedTransport,
|
||||||
}, fmt.Errorf("multicast is not supported")
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
trackID, err := func() (int, error) {
|
trackID, err := func() (int, error) {
|
||||||
|
Reference in New Issue
Block a user