Revert active TCP candidate support

This reverts commit 00bbd2954c
and 1d502ca6ec
This commit is contained in:
Sean DuBois
2023-05-24 00:05:31 -04:00
parent 7715befedc
commit abc1ca33b5
10 changed files with 78 additions and 390 deletions

View File

@@ -675,7 +675,7 @@ func TestMultiUDPMuxUsage(t *testing.T) {
}
a, err := NewAgent(&AgentConfig{
NetworkTypes: []NetworkType{NetworkTypeUDP4, NetworkTypeUDP6},
NetworkTypes: supportedNetworkTypes(),
CandidateTypes: []CandidateType{CandidateTypeHost},
UDPMux: NewMultiUDPMuxDefault(udpMuxInstances...),
})
@@ -751,8 +751,7 @@ func TestMultiTCPMuxUsage(t *testing.T) {
portFound := make(map[int]bool)
for c := range candidateCh {
activeCandidate := c.Port() == 0
if c.NetworkType().IsTCP() && !activeCandidate {
if c.NetworkType().IsTCP() {
portFound[c.Port()] = true
}
}