mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
上传遗漏的文件
This commit is contained in:
parent
b5ea76eac7
commit
299b8a2eea
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,7 @@
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
.vs
|
.vs
|
||||||
|
/FastTunnel.Client/*.user
|
||||||
|
/FastTunnel.Server/*.user
|
||||||
|
/FastTunnel.Client/Properties/PublishProfiles/*.user
|
||||||
|
/FastTunnel.Server/Properties/PublishProfiles/*.user
|
||||||
|
|
13
FastTunnel.Core/Models/NewSSHRequest.cs
Normal file
13
FastTunnel.Core/Models/NewSSHRequest.cs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FastTunnel.Core.Models
|
||||||
|
{
|
||||||
|
public class NewSSHRequest
|
||||||
|
{
|
||||||
|
public string MsgId { get; set; }
|
||||||
|
|
||||||
|
public SSHConfig SSHConfig { get; set; }
|
||||||
|
}
|
||||||
|
}
|
11
FastTunnel.Core/Models/Protocol.cs
Normal file
11
FastTunnel.Core/Models/Protocol.cs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FastTunnel.Core.Models
|
||||||
|
{
|
||||||
|
public enum Protocol
|
||||||
|
{
|
||||||
|
TCP = 0,
|
||||||
|
}
|
||||||
|
}
|
29
FastTunnel.Core/Models/SSHConfig.cs
Normal file
29
FastTunnel.Core/Models/SSHConfig.cs
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FastTunnel.Core.Models
|
||||||
|
{
|
||||||
|
public class SSHConfig
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 协议
|
||||||
|
/// </summary>
|
||||||
|
public Protocol Protocol { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 局域网IP地址
|
||||||
|
/// </summary>
|
||||||
|
public string LocalIp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 局域网ssh端口号
|
||||||
|
/// </summary>
|
||||||
|
public int LocalPort { get; set; } = 22;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 服务端监听的端口号 1~65535
|
||||||
|
/// </summary>
|
||||||
|
public int RemotePort { get; set; }
|
||||||
|
}
|
||||||
|
}
|
13
FastTunnel.Core/Models/SSHHandlerArg.cs
Normal file
13
FastTunnel.Core/Models/SSHHandlerArg.cs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Sockets;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FastTunnel.Core.Models
|
||||||
|
{
|
||||||
|
public class SSHHandlerArg
|
||||||
|
{
|
||||||
|
public SSHConfig SSHConfig { get; internal set; }
|
||||||
|
public Socket LocalClient { get; internal set; }
|
||||||
|
}
|
||||||
|
}
|
16
FastTunnel.Core/Models/SSHInfo.cs
Normal file
16
FastTunnel.Core/Models/SSHInfo.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Net.Sockets;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FastTunnel.Core.Models
|
||||||
|
{
|
||||||
|
public class SSHInfo<T>
|
||||||
|
{
|
||||||
|
public Socket Socket { get; set; }
|
||||||
|
|
||||||
|
public SSHConfig SSHConfig { get; set; }
|
||||||
|
|
||||||
|
public Listener<T> Listener { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||||
|
-->
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<PublishProtocol>FileSystem</PublishProtocol>
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Any CPU</Platform>
|
||||||
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<PublishDir>bin\Release\netcoreapp3.1\publish\</PublishDir>
|
||||||
|
<SelfContained>false</SelfContained>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user