修改提示语
This commit is contained in:
parent
54e57b3ab7
commit
667f48fbf2
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using FastGithub.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
@ -50,7 +51,7 @@ namespace FastGithub.Dns
|
||||
.Where(item => item.GetIPProperties().GetIPv4Properties().Index == dwBestIfIndex)
|
||||
.FirstOrDefault();
|
||||
|
||||
return @interface ?? throw new NotSupportedException("找不到网络适配器用来设置dns");
|
||||
return @interface ?? throw new FastGithubException("找不到网络适配器用来设置dns");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ namespace FastGithub
|
||||
|
||||
if (CanTcpListen(HTTP_PORT) == false)
|
||||
{
|
||||
logger.LogWarning($"无法监听tcp端口{HTTP_PORT},{nameof(FastGithub)}无法http反向代理");
|
||||
logger.LogError($"由于tcp端口{HTTP_PORT}已经被其它进程占用,{nameof(FastGithub)}无法进行http反向代理");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -76,7 +76,7 @@ namespace FastGithub
|
||||
|
||||
if (CanTcpListen(HTTPS_PORT) == false)
|
||||
{
|
||||
logger.LogWarning($"无法监听tcp端口{HTTPS_PORT},{nameof(FastGithub)}无法https反向代理");
|
||||
logger.LogError($"由于tcp端口{HTTPS_PORT}已经被其它进程占用,{nameof(FastGithub)}无法进行https反向代理");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -29,7 +29,7 @@ namespace FastGithub
|
||||
/// <returns></returns>
|
||||
public Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
this.logger.LogInformation($"{nameof(FastGithub)}启动完成,访问http://127.0.0.1或本机其它任意ip可进入Dashboard");
|
||||
this.logger.LogInformation($"{nameof(FastGithub)}启动完成,访问 http://127.0.0.1 或本机其它任意ip可进入Dashboard");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"Yarp": "Warning",
|
||||
"System": "Warning",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.AspNetCore.Server.Kestrel": "Error"
|
||||
"Microsoft.AspNetCore.Server.Kestrel": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user