Skip to content

Commit

Permalink
Add tcptype to Candidate toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
jalaziz committed Oct 19, 2017
1 parent c266797 commit b63b1d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/ice4j/ice/Candidate.java
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ public String toString()
buff.append(" rport ").append(relAddr.getPort());
}

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

return buff.toString();
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/ice4j/ice/sdp/CandidateAttribute.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ public String getValue()
buff.append(" rport ").append(relAddr.getPort());
}

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

return buff.toString();
}

Expand Down

0 comments on commit b63b1d6

Please sign in to comment.