Skip to content

Commit 90510ea

Browse files
committed
1 parent cce3cc7 commit 90510ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/Renci.SshNet.Tests/Classes/ForwardedPortDynamicTest_Dispose_PortStarted_ChannelBound.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private void EstablishSocks4Connection(Socket client)
211211
{
212212
var userNameBytes = Encoding.ASCII.GetBytes(_userName);
213213
var addressBytes = _remoteEndpoint.Address.GetAddressBytes();
214-
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).Reverse().ToArray();
214+
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).AsEnumerable().Reverse().ToArray();
215215

216216
_client.Connect(_endpoint);
217217

test/Renci.SshNet.Tests/Classes/ForwardedPortDynamicTest_SessionErrorOccurred_ChannelBound.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private void EstablishSocks4Connection(Socket client)
218218
{
219219
var userNameBytes = Encoding.ASCII.GetBytes(_userName);
220220
var addressBytes = _remoteEndpoint.Address.GetAddressBytes();
221-
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).Reverse().ToArray();
221+
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).AsEnumerable().Reverse().ToArray();
222222

223223
_client.Connect(_endpoint);
224224

test/Renci.SshNet.Tests/Classes/ForwardedPortDynamicTest_Stop_PortStarted_ChannelBound.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private void EstablishSocks4Connection(Socket client)
198198
{
199199
var userNameBytes = Encoding.ASCII.GetBytes(_userName);
200200
var addressBytes = _remoteEndpoint.Address.GetAddressBytes();
201-
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).Reverse().ToArray();
201+
var portBytes = BitConverter.GetBytes((ushort)_remoteEndpoint.Port).AsEnumerable().Reverse().ToArray();
202202

203203
_client.Connect(_endpoint);
204204

0 commit comments

Comments
 (0)