Skip to content

Commit

Permalink
Improve SetEphemeralUDPPortRange documentation
Browse files Browse the repository at this point in the history
With values used by pion/ice
  • Loading branch information
silently authored and stv0g committed May 19, 2023
1 parent d1985e0 commit ab11eed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions settingengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ func (e *SettingEngine) SetRelayAcceptanceMinWait(t time.Duration) {
// SetEphemeralUDPPortRange limits the pool of ephemeral ports that
// ICE UDP connections can allocate from. This affects both host candidates,
// and the local address of server reflexive candidates.
//
// When portMin and portMax are left to the 0 default value, pion/ice candidate
// gatherer replaces them and uses 1 for portMin and 65535 for portMax.
func (e *SettingEngine) SetEphemeralUDPPortRange(portMin, portMax uint16) error {
if portMax < portMin {
return ice.ErrPort
Expand Down

0 comments on commit ab11eed

Please sign in to comment.