Fix WebRTC candidate type

This commit is contained in:
Alexey Khit
2023-01-14 09:45:03 +03:00
parent 7e7e15d7c8
commit 3c1bdd0dab
+1 -1
View File
@@ -32,7 +32,7 @@ func NewCandidate(network, address string) (string, error) {
Component: ice.ComponentRTP,
}
if network == "udp" {
if network == "tcp" {
config.TCPType = ice.TCPTypePassive
}