mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
client: do not allow using AnyPortEnable when publishing (#89)
This commit is contained in:
@@ -1342,7 +1342,7 @@ func (c *Client) doSetup(
|
||||
return nil, liberrors.ErrClientTransportHeaderInvalidDelivery{}
|
||||
}
|
||||
|
||||
if !c.AnyPortEnable {
|
||||
if !forPlay || !c.AnyPortEnable {
|
||||
if thRes.ServerPorts == nil || isAnyPort(thRes.ServerPorts[0]) || isAnyPort(thRes.ServerPorts[1]) {
|
||||
rtpListener.close()
|
||||
rtcpListener.close()
|
||||
|
Reference in New Issue
Block a user