Skip to content

Commit

Permalink
squash: Fix setting initial addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Aug 8, 2024
1 parent 69b7658 commit 2cd278f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/ice4j/ice/Component.java
Original file line number Diff line number Diff line change
Expand Up @@ -1243,8 +1243,13 @@ public void send(byte[] buffer, int offset, int length)
{
CandidatePair selectedPair = getSelectedPair();
LocalCandidate localCandidate = selectedPair == null ? null : selectedPair.getLocalCandidate();
socket = localCandidate == null ? null : localCandidate.getCandidateIceSocketWrapper();
remoteAddress = selectedPair == null ? null : selectedPair.getRemoteCandidate().getTransportAddress();
socket = localCandidate == null ? null : localCandidate.getCandidateIceSocketWrapper(remoteAddress);
if (localCandidate != null)
{
lastLocalAddress = localCandidate.getTransportAddress();
lastRemoteAddress = remoteAddress;
}
}

if (socket == null)
Expand Down

0 comments on commit 2cd278f

Please sign in to comment.