mirror of
https://github.com/pion/stun.git
synced 2025-10-26 17:20:31 +08:00
all: more testing and attr refactor
This commit is contained in:
@@ -125,12 +125,6 @@ type RawAttribute struct {
|
||||
Value []byte
|
||||
}
|
||||
|
||||
// AddTo adds RawAttribute to m.
|
||||
func (a *RawAttribute) AddTo(m *Message) error {
|
||||
m.Add(a.Type, m.Raw)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Equal returns true if a == b.
|
||||
func (a RawAttribute) Equal(b RawAttribute) bool {
|
||||
if a.Type != b.Type {
|
||||
|
||||
Reference in New Issue
Block a user