Skip to content

Commit 72953cd

Browse files
committed
Turn aggressive nomination off by default
1 parent 2d49987 commit 72953cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ex_ice/ice_agent.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ defmodule ExICE.ICEAgent do
6666
In particular, RFC 8445 assumes that data can be sent on any valid pair (there is no need for nomination).
6767
While this behavior is supported by most of the implementations, some of them still require
6868
a pair to be nominated by the controlling agent before they can start sending data.
69-
Defaults to true.
69+
Defaults to false.
7070
* `on_gathering_state_change` - where to send gathering state change notifications. Defaults to a process that spawns `ExICE`.
7171
* `on_connection_state_change` - where to send connection state change notifications. Defaults to a process that spawns `ExICE`.
7272
* `on_data` - where to send data. Defaults to a process that spawns `ExICE`.

lib/ex_ice/priv/ice_agent.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ defmodule ExICE.Priv.ICEAgent do
151151
on_gathering_state_change: opts[:on_gathering_state_change] || controlling_process,
152152
on_data: opts[:on_data] || controlling_process,
153153
on_new_candidate: opts[:on_new_candidate] || controlling_process,
154-
aggressive_nomination: Keyword.get(opts, :aggressive_nomination, true),
154+
aggressive_nomination: Keyword.get(opts, :aggressive_nomination, false),
155155
if_discovery_module: if_discovery_module,
156156
transport_module: transport_module,
157157
gatherer: Gatherer.new(if_discovery_module, transport_module, ip_filter, ports),

0 commit comments

Comments
 (0)