mirror of
https://github.com/pion/ice.git
synced 2025-12-24 13:38:03 +08:00
Update example to the new API
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user