diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 1f33690bcb1..bc45a0c34de 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -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://") &&