Skip to content

Commit

Permalink
Fix. Client Host is RemoteEndPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Mar 17, 2023
1 parent dea2e0a commit c4c5de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tcp/TcpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public override void Open(Host host)

m_socket.Connect(host.EndPoint);

Host = new Host(m_socket.LocalEndPoint);
Host = new Host(m_socket.RemoteEndPoint);

m_closed = false;

Expand Down
2 changes: 1 addition & 1 deletion src/Udp/UdpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Open(Host host)

m_socket.Connect(host.EndPoint);

Host = new Host(m_socket.LocalEndPoint);
Host = new Host(m_socket.RemoteEndPoint);

_opened = true;

Expand Down

0 comments on commit c4c5de1

Please sign in to comment.