mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-21 02:13:23 +00:00
cfa1a7028b
Fix ChannelDirectTcpip clean up after socket is close by remote host Add ForwardedPortDynamic to support dynamic forwarding, SOCKS4 and SOCKS5 are supported.
20 lines
445 B
C#
20 lines
445 B
C#
using System;
|
|
using System.Net.Sockets;
|
|
using System.Net;
|
|
using System.Threading;
|
|
using Renci.SshNet.Channels;
|
|
|
|
namespace Renci.SshNet
|
|
{
|
|
/// <summary>
|
|
/// Provides functionality for local port forwarding
|
|
/// </summary>
|
|
public partial class ForwardedPortLocal
|
|
{
|
|
partial void ExecuteThread(Action action)
|
|
{
|
|
ThreadPool.QueueUserWorkItem((o) => { action(); });
|
|
}
|
|
}
|
|
}
|