修复类型转换错误

This commit is contained in:
SpringHgui 2020-04-02 09:43:20 +08:00
parent 79efd3edff
commit db1b85b715
4 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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)

View File

@ -11,7 +11,7 @@
"BindPort": 2271,
//
"Domain": "test.cc",
"Domain": "sd.suidao.io",
// , 访url http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/
"ProxyPort_HTTP": 2270