Skip to content

Commit ab11eed

Browse files
Guillaume Denisstv0g
authored andcommitted
Improve SetEphemeralUDPPortRange documentation
With values used by pion/ice
1 parent d1985e0 commit ab11eed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

settingengine.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ func (e *SettingEngine) SetRelayAcceptanceMinWait(t time.Duration) {
149149
// SetEphemeralUDPPortRange limits the pool of ephemeral ports that
150150
// ICE UDP connections can allocate from. This affects both host candidates,
151151
// and the local address of server reflexive candidates.
152+
//
153+
// When portMin and portMax are left to the 0 default value, pion/ice candidate
154+
// gatherer replaces them and uses 1 for portMin and 65535 for portMax.
152155
func (e *SettingEngine) SetEphemeralUDPPortRange(portMin, portMax uint16) error {
153156
if portMax < portMin {
154157
return ice.ErrPort

0 commit comments

Comments
 (0)