mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
🌜🌜🌜
This commit is contained in:
parent
ae12ef8104
commit
cbc6fedcaf
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ publish
|
||||||
/FastTunnel.Core/*.user
|
/FastTunnel.Core/*.user
|
||||||
/build
|
/build
|
||||||
/FastTunnel.Server/.config
|
/FastTunnel.Server/.config
|
||||||
|
/FastTunnel.Server/logs
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
{
|
{
|
||||||
//"Logging": {
|
"Logging": {
|
||||||
// "LogLevel": {
|
"LogLevel": {
|
||||||
// // Trace Debug Information Warning Error
|
// Trace Debug Information Warning Error
|
||||||
// "Default": "Information",
|
"Default": "Information",
|
||||||
// "Microsoft": "Warning",
|
"Microsoft": "Warning",
|
||||||
// "Microsoft.Hosting.Lifetime": "Information"
|
"Microsoft.Hosting.Lifetime": "Information"
|
||||||
// }
|
}
|
||||||
//},
|
},
|
||||||
"EnableFileLog": false,
|
"EnableFileLog": false,
|
||||||
"ClientSettings": {
|
"ClientSettings": {
|
||||||
"Server": {
|
"Server": {
|
||||||
// 服务端ip/域名
|
// 服务端ip/域名
|
||||||
//"ServerAddr": "my.com",
|
|
||||||
"ServerAddr": "127.0.0.1",
|
"ServerAddr": "127.0.0.1",
|
||||||
// 服务端监听的通信端口
|
// 服务端监听的通信端口
|
||||||
"ServerPort": 1270
|
"ServerPort": 1270
|
||||||
|
@ -27,7 +26,6 @@
|
||||||
{
|
{
|
||||||
// 本地站点所在内网的ip
|
// 本地站点所在内网的ip
|
||||||
"LocalIp": "127.0.0.1",
|
"LocalIp": "127.0.0.1",
|
||||||
|
|
||||||
// 站点监听的端口号
|
// 站点监听的端口号
|
||||||
"LocalPort": 8090,
|
"LocalPort": 8090,
|
||||||
|
|
||||||
|
@ -36,11 +34,6 @@
|
||||||
|
|
||||||
// 附加域名,需要解析域名A记录至服务的ip地址)
|
// 附加域名,需要解析域名A记录至服务的ip地址)
|
||||||
// "WWW": [ "www.abc.com", "test111.test.cc" ]
|
// "WWW": [ "www.abc.com", "test111.test.cc" ]
|
||||||
},
|
|
||||||
{
|
|
||||||
"LocalIp": "127.0.0.1",
|
|
||||||
"LocalPort": 8091,
|
|
||||||
"SubDomain": "test1"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -53,16 +46,6 @@
|
||||||
"Forwards": [
|
"Forwards": [
|
||||||
{
|
{
|
||||||
"LocalIp": "127.0.0.1",
|
"LocalIp": "127.0.0.1",
|
||||||
"LocalPort": 8090,
|
|
||||||
"RemotePort": 7090
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"LocalIp": "127.0.0.1",
|
|
||||||
"LocalPort": 8091,
|
|
||||||
"RemotePort": 7091
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"LocalIp": "10.70.250.17",
|
|
||||||
"LocalPort": 3389, // windows远程桌面端口为3389
|
"LocalPort": 3389, // windows远程桌面端口为3389
|
||||||
"RemotePort": 1274 // 访问 服务端ip:1274 即可实现远程window桌面
|
"RemotePort": 1274 // 访问 服务端ip:1274 即可实现远程window桌面
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace FastTunnel.Core.Client
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var logMsg = GetLoginMsg();
|
var logMsg = GetLoginMsg(cancellationToken);
|
||||||
|
|
||||||
// 连接到的目标IP
|
// 连接到的目标IP
|
||||||
socket = new ClientWebSocket();
|
socket = new ClientWebSocket();
|
||||||
|
@ -98,7 +98,7 @@ namespace FastTunnel.Core.Client
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual string GetLoginMsg()
|
public virtual string GetLoginMsg(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
Server = ClientConfig.Server;
|
Server = ClientConfig.Server;
|
||||||
return new LogInMassage
|
return new LogInMassage
|
||||||
|
|
Loading…
Reference in New Issue
Block a user