Update example to the new API

This commit is contained in:
Joe Turki
2025-12-20 22:14:14 +02:00
parent 37cc4c1855
commit 2bd4cd80aa

View File

@@ -88,9 +88,9 @@ func main() { //nolint
panic(err)
}
iceAgent, err = ice.NewAgent(&ice.AgentConfig{
NetworkTypes: []ice.NetworkType{ice.NetworkTypeUDP4},
})
iceAgent, err = ice.NewAgentWithOptions(
ice.WithNetworkTypes([]ice.NetworkType{ice.NetworkTypeUDP4}),
)
if err != nil {
panic(err)
}