// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package webrtc

import 

// 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 
}