Skip to content

Commit ff70507

Browse files
committed
Remove ic2 from ice-options
1 parent f0c4982 commit ff70507

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jsep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (s *SessionDescription) WithValueAttribute(key, value string) *SessionDescr
117117
// WithICETrickleAdvertised advertises ICE trickle support in the session description.
118118
// See https://datatracker.ietf.org/doc/html/rfc9429#section-5.2.1
119119
func (s *SessionDescription) WithICETrickleAdvertised() *SessionDescription {
120-
s.WithValueAttribute(AttrKeyICEOptions, "trickle ice2")
120+
s.WithValueAttribute(AttrKeyICEOptions, "trickle")
121121

122122
return s
123123
}

jsep_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestSessionDescriptionAttributes(t *testing.T) {
5656
sd = sd.WithICETrickleAdvertised()
5757
assert.Len(t, sd.Attributes, 3)
5858
assert.Equal(t, AttrKeyICEOptions, sd.Attributes[2].Key)
59-
assert.Equal(t, "trickle ice2", sd.Attributes[2].Value)
59+
assert.Equal(t, "trickle", sd.Attributes[2].Value)
6060
})
6161

6262
t.Run("WithFingerprint", func(t *testing.T) {

0 commit comments

Comments
 (0)