mirror of
				https://github.com/aler9/gortsplib
				synced 2025-11-01 02:52:36 +08:00 
			
		
		
		
	ServerConn: forbid multicast
This commit is contained in:
		| @@ -374,6 +374,12 @@ func (sc *ServerConn) handleRequest(req *base.Request) (*base.Response, error) { | ||||
| 				}, fmt.Errorf("transport header: %s", err) | ||||
| 			} | ||||
|  | ||||
| 			if th.Delivery != nil && *th.Delivery == base.StreamDeliveryMulticast { | ||||
| 				return &base.Response{ | ||||
| 					StatusCode: base.StatusBadRequest, | ||||
| 				}, fmt.Errorf("multicast is not supported") | ||||
| 			} | ||||
|  | ||||
| 			trackID, err := extractTrackID(controlPath, th.Mode, len(sc.tracks)) | ||||
| 			if err != nil { | ||||
| 				return &base.Response{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 aler9
					aler9