mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
修复类型转换错误
This commit is contained in:
parent
79efd3edff
commit
db1b85b715
|
@ -9,9 +9,9 @@
|
|||
"ClientSettings": {
|
||||
"Common": {
|
||||
// 服务端公网ip, 对应服务端配置文件的 BindAddr
|
||||
//"ServerAddr": "45.132.12.57",
|
||||
"ServerAddr": "45.132.12.57",
|
||||
|
||||
"ServerAddr": "127.0.0.1",
|
||||
//"ServerAddr": "127.0.0.1",
|
||||
|
||||
// 服务端通信端口,对应服务端配置文件的 BindPort
|
||||
"ServerPort": 1271
|
||||
|
|
|
@ -16,6 +16,7 @@ using NLog;
|
|||
using FastTunnel.Core.Config;
|
||||
using FastTunnel.Core.Host;
|
||||
using FastTunnel.Core.Core;
|
||||
using FastTunnel.Core.Handlers;
|
||||
|
||||
namespace FastTunnel.Server
|
||||
{
|
||||
|
@ -65,6 +66,7 @@ namespace FastTunnel.Server
|
|||
private static void Config(ServiceCollection service)
|
||||
{
|
||||
service.AddTransient<FastTunnelServer>()
|
||||
.AddTransient<ILoginHandler, LoginHandler>()
|
||||
.AddSingleton<ServerConfig>(implementationFactory);
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,6 @@ namespace SuiDao.Client
|
|||
|
||||
private static void Run(IServiceProvider servicesProvider, ILogger _logger, string key)
|
||||
{
|
||||
// https://localhost:5002
|
||||
var res = HttpHelper.PostAsJson("https://api1.suidao.io/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}").Result;
|
||||
var jobj = JObject.Parse(res);
|
||||
if ((bool)jobj["success"] == true)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"BindPort": 2271,
|
||||
|
||||
// 自定义域名
|
||||
"Domain": "test.cc",
|
||||
"Domain": "sd.suidao.io",
|
||||
|
||||
// 服务监听的端口号, 访问自定义域名站点时url为 http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/
|
||||
"ProxyPort_HTTP": 2270
|
||||
|
|
Loading…
Reference in New Issue
Block a user