Skip to content

Commit 2ed82a4

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

jsep.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +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")
121-
122-
return s
120+
return s.WithValueAttribute(AttrKeyICEOptions, "trickle")
123121
}
124122

125123
// WithFingerprint adds a fingerprint to the session description.

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)