Source File
configuration_common.go
Belonging Package
github.com/pion/webrtc/v4
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage webrtcimport// getICEServers side-steps the strict parsing mode of the ice package// (as defined in https://tools.ietf.org/html/rfc7064) by copying and then// stripping any erroneous queries from "stun(s):" URLs before parsing.func ( Configuration) () []ICEServer {:= append([]ICEServer{}, .ICEServers...)for := range {[].URLs = append([]string{}, [].URLs...)for , := range [].URLs {if strings.HasPrefix(, "stun") {// strip the query from "stun(s):" if present:= strings.Split(, "?")= [0]}[].URLs[] =}}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |