mirror of
https://github.com/pion/webrtc.git
synced 2025-10-30 10:16:36 +08:00
Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
This commit is contained in:
21
constants.go
21
constants.go
@@ -7,16 +7,16 @@ import "github.com/pion/dtls/v3"
|
||||
|
||||
const (
|
||||
// default as the standard ethernet MTU
|
||||
// can be overwritten with SettingEngine.SetReceiveMTU()
|
||||
// can be overwritten with SettingEngine.SetReceiveMTU().
|
||||
receiveMTU = 1500
|
||||
|
||||
// simulcastProbeCount is the amount of RTP Packets
|
||||
// that handleUndeclaredSSRC will read and try to dispatch from
|
||||
// mid and rid values
|
||||
// mid and rid values.
|
||||
simulcastProbeCount = 10
|
||||
|
||||
// simulcastMaxProbeRoutines is how many active routines can be used to probe
|
||||
// If the total amount of incoming SSRCes exceeds this new requests will be ignored
|
||||
// If the total amount of incoming SSRCes exceeds this new requests will be ignored.
|
||||
simulcastMaxProbeRoutines = 25
|
||||
|
||||
mediaSectionApplication = "application"
|
||||
@@ -33,14 +33,21 @@ const (
|
||||
|
||||
generatedCertificateOrigin = "WebRTC"
|
||||
|
||||
// AttributeRtxPayloadType is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream payload type
|
||||
// AttributeRtxPayloadType is the interceptor attribute added when Read()
|
||||
// returns an RTX packet containing the RTX stream payload type.
|
||||
AttributeRtxPayloadType = "rtx_payload_type"
|
||||
// AttributeRtxSsrc is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream SSRC
|
||||
// AttributeRtxSsrc is the interceptor attribute added when Read()
|
||||
// returns an RTX packet containing the RTX stream SSRC.
|
||||
AttributeRtxSsrc = "rtx_ssrc"
|
||||
// AttributeRtxSequenceNumber is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream sequence number
|
||||
// AttributeRtxSequenceNumber is the interceptor attribute added when
|
||||
// Read() returns an RTX packet containing the RTX stream sequence number.
|
||||
AttributeRtxSequenceNumber = "rtx_sequence_number"
|
||||
)
|
||||
|
||||
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
|
||||
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
|
||||
return []dtls.SRTPProtectionProfile{
|
||||
dtls.SRTP_AEAD_AES_256_GCM,
|
||||
dtls.SRTP_AEAD_AES_128_GCM,
|
||||
dtls.SRTP_AES128_CM_HMAC_SHA1_80,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user