mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
1111
This commit is contained in:
parent
61324186db
commit
acdfe23cb3
|
@ -24,7 +24,11 @@ namespace SuiDao.Client
|
|||
while (true)
|
||||
{
|
||||
Console.Write("请输入登录密钥:");
|
||||
key = Console.ReadLine();
|
||||
#if DEBUG
|
||||
key = "87e931d242884ecaa9c51a5a09a00eef";
|
||||
#else
|
||||
key = Console.ReadLine();
|
||||
#endif
|
||||
|
||||
if (string.IsNullOrEmpty(key))
|
||||
{
|
||||
|
@ -64,8 +68,7 @@ namespace SuiDao.Client
|
|||
var client = servicesProvider.GetRequiredService<FastTunnelClient>();
|
||||
|
||||
// https://localhost:5002
|
||||
//var res = HttpHelper.PostAsJson("https://api1.suidao.io/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}");
|
||||
var res = HttpHelper.PostAsJson("https://localhost:5002/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}").Result;
|
||||
var res = HttpHelper.PostAsJson("https://api1.suidao.io/api/Client/GetServerByKey", $"{{ \"key\":\"{key}\"}}").Result;
|
||||
var jobj = JObject.Parse(res);
|
||||
if ((bool)jobj["success"] == true)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user