WithIncludeLoopback includes loopback addresses in the candidate list. By default, loopback addresses are excluded. Example: agent, err := NewAgentWithOptions(WithIncludeLoopback())
()
| 712 | // |
| 713 | // agent, err := NewAgentWithOptions(WithIncludeLoopback()) |
| 714 | func WithIncludeLoopback() AgentOption { |
| 715 | return func(a *Agent) error { |
| 716 | if a.constructed { |
| 717 | return ErrAgentOptionNotUpdatable |
| 718 | } |
| 719 | |
| 720 | a.includeLoopback = true |
| 721 | |
| 722 | return nil |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | // WithTCPPriorityOffset sets a number which is subtracted from the default (UDP) candidate type preference |
| 727 | // for host, srflx and prfx candidate types. It helps to configure relative preference of UDP candidates |
no outgoing calls
searching dependent graphs…