WithEnableUseCandidateCheckPriority enables checking for equal or higher priority when switching selected candidate pair if the peer requests USE-CANDIDATE and agent is a lite agent. This is disabled by default, i.e. when peer requests USE-CANDIDATE, the selected pair will be switched to that irresp
()
| 799 | // |
| 800 | // agent, err := NewAgentWithOptions(WithEnableUseCandidateCheckPriority()) |
| 801 | func WithEnableUseCandidateCheckPriority() AgentOption { |
| 802 | return func(a *Agent) error { |
| 803 | if a.constructed { |
| 804 | return ErrAgentOptionNotUpdatable |
| 805 | } |
| 806 | |
| 807 | a.enableUseCandidateCheckPriority = true |
| 808 | |
| 809 | return nil |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | // WithContinualGatheringPolicy sets the continual gathering policy for the agent. |
| 814 | // When set to GatherContinually, the agent will continuously monitor network interfaces |
no outgoing calls
searching dependent graphs…