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

Function removeZoneIDFromAddress

candidate_base.go:564–570  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

562}
563
564func removeZoneIDFromAddress(addr string) string {
565 if before, _, ok := strings.Cut(addr, "%"); ok {
566 return before
567 }
568
569 return addr
570}
571
572// Marshal returns the string representation of the ICECandidate.
573func (c *candidateBase) Marshal() string {

Callers 2

MarshalMethod · 0.85
UnmarshalCandidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…