MCPcopy Create free account
hub / github.com/pion/ice / WithIncludeLoopback

Function WithIncludeLoopback

agent_options.go:714–724  ·  view source on GitHub ↗

WithIncludeLoopback includes loopback addresses in the candidate list. By default, loopback addresses are excluded. Example: agent, err := NewAgentWithOptions(WithIncludeLoopback())

()

Source from the content-addressed store, hash-verified

712//
713// agent, err := NewAgentWithOptions(WithIncludeLoopback())
714func 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

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…