直播:后台 JWT 推流、前台画中画;WebRTC 服务与 Nginx WebSocket 代理
Made-with: Cursor
This commit is contained in:
22
server/vendor/github.com/pion/stun/integrity_debug.go
generated
vendored
Normal file
22
server/vendor/github.com/pion/stun/integrity_debug.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
//go:build debug
|
||||
// +build debug
|
||||
|
||||
package stun
|
||||
|
||||
import "fmt"
|
||||
|
||||
// IntegrityErr occurs when computed HMAC differs from expected.
|
||||
type IntegrityErr struct {
|
||||
Expected []byte
|
||||
Actual []byte
|
||||
}
|
||||
|
||||
func (i *IntegrityErr) Error() string {
|
||||
return fmt.Sprintf(
|
||||
"Integrity check failed: 0x%x (expected) !- 0x%x (actual)",
|
||||
i.Expected, i.Actual,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user