mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-28 05:51:59 -08:00
this happened when udpMaxPayloadSize was not explicitly set in configuration file.
This commit is contained in:
parent
a649f91414
commit
d7eadeb523
1 changed files with 3 additions and 3 deletions
|
|
@ -326,10 +326,10 @@ func (conf *Conf) CheckAndFillMissing() error {
|
|||
return fmt.Errorf("'readBufferCount' must be a power of two")
|
||||
}
|
||||
if conf.UDPMaxPayloadSize == 0 {
|
||||
conf.UDPMaxPayloadSize = 1500
|
||||
conf.UDPMaxPayloadSize = 1472
|
||||
}
|
||||
if conf.UDPMaxPayloadSize > 1500 {
|
||||
return fmt.Errorf("'udpMaxPayloadSize' must be less than 1500")
|
||||
if conf.UDPMaxPayloadSize > 1472 {
|
||||
return fmt.Errorf("'udpMaxPayloadSize' must be less than 1472")
|
||||
}
|
||||
if conf.ExternalAuthenticationURL != "" {
|
||||
if !strings.HasPrefix(conf.ExternalAuthenticationURL, "http://") &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue