Skip to content

Commit b63b1d6

Browse files
committed
Add tcptype to Candidate toString method
1 parent c266797 commit b63b1d6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/main/java/org/ice4j/ice/Candidate.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,10 @@ public String toString()
776776
buff.append(" rport ").append(relAddr.getPort());
777777
}
778778

779+
if(getTcpType() != null) {
780+
buff.append(" tcptype ").append(getTcpType());
781+
}
782+
779783
return buff.toString();
780784
}
781785

src/main/java/org/ice4j/ice/sdp/CandidateAttribute.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ public String getValue()
137137
buff.append(" rport ").append(relAddr.getPort());
138138
}
139139

140+
if(candidate.getTcpType() != null) {
141+
buff.append(" tcptype ").append(candidate.getTcpType());
142+
}
143+
140144
return buff.toString();
141145
}
142146

0 commit comments

Comments
 (0)