mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 10:51:05 +08:00
1
This commit is contained in:
parent
634e10f16d
commit
7624d71a2b
|
@ -24,7 +24,7 @@ public class FastTunnelHostingStartup : IHostingStartup
|
|||
|
||||
builder.UseKestrel((context, options) =>
|
||||
{
|
||||
var basePort = context.Configuration.GetValue<int?>("FastTunnel:BASE_PORT") ?? 1270;
|
||||
var basePort = context.Configuration.GetValue<int?>("FastTunnel:BasePort") ?? 1270;
|
||||
options.ListenAnyIP(basePort, listenOptions =>
|
||||
{
|
||||
listenOptions.UseConnectionFastTunnel();
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
"EnableFileLog": false,
|
||||
"FastTunnel": {
|
||||
// Http&客户端通讯端口
|
||||
"BASE_PORT": 1270,
|
||||
"BasePort": 1270,
|
||||
|
||||
// 可选,绑定的根域名,
|
||||
// 客户端需配置SubDomain,实现 ${SubDomain}.${WebDomain}访问内网的站点,注意:需要通过域名访问网站时必选。
|
||||
"WebDomain": "test.cc",
|
||||
|
|
Loading…
Reference in New Issue
Block a user