jitsi / ice4j

A Java implementation of the ICE protocol
Apache License 2.0
437 stars 232 forks source link

Firefox required tcptype in tcp ICE candidate #282

Open Horcrux7 opened 6 months ago

Horcrux7 commented 6 months ago

The Firefox can't parse a tcp ICE candidate if the attribute tcptype is missing. The class TcpHostCandidate contains a value of CandidateTcpType but the toString() method does not add it.

The follow Code should be added to the method Candidate.toString()

        CandidateTcpType tcpType= getTcpType();
        if (tcpType!= null)
        {
            buff.append(" tcptype ").append(tcpType);
        }