修改提示语

This commit is contained in:
陈国伟 2021-07-29 15:57:19 +08:00
parent 54e57b3ab7
commit 667f48fbf2
4 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
using System; using FastGithub.Configuration;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
@ -50,7 +51,7 @@ namespace FastGithub.Dns
.Where(item => item.GetIPProperties().GetIPv4Properties().Index == dwBestIfIndex) .Where(item => item.GetIPProperties().GetIPv4Properties().Index == dwBestIfIndex)
.FirstOrDefault(); .FirstOrDefault();
return @interface ?? throw new NotSupportedException("找不到网络适配器用来设置dns"); return @interface ?? throw new FastGithubException("找不到网络适配器用来设置dns");
} }

View File

@ -43,7 +43,7 @@ namespace FastGithub
if (CanTcpListen(HTTP_PORT) == false) if (CanTcpListen(HTTP_PORT) == false)
{ {
logger.LogWarning($"无法监听tcp端口{HTTP_PORT}{nameof(FastGithub)}无法http反向代理"); logger.LogError($"由于tcp端口{HTTP_PORT}已经被其它进程占用,{nameof(FastGithub)}无法进行http反向代理");
} }
else else
{ {
@ -76,7 +76,7 @@ namespace FastGithub
if (CanTcpListen(HTTPS_PORT) == false) if (CanTcpListen(HTTPS_PORT) == false)
{ {
logger.LogWarning($"无法监听tcp端口{HTTPS_PORT}{nameof(FastGithub)}无法https反向代理"); logger.LogError($"由于tcp端口{HTTPS_PORT}已经被其它进程占用,{nameof(FastGithub)}无法进行https反向代理");
} }
else else
{ {

View File

@ -29,7 +29,7 @@ namespace FastGithub
/// <returns></returns> /// <returns></returns>
public Task StartAsync(CancellationToken cancellationToken) 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; return Task.CompletedTask;
} }

View File

@ -30,7 +30,7 @@
"Yarp": "Warning", "Yarp": "Warning",
"System": "Warning", "System": "Warning",
"Microsoft": "Warning", "Microsoft": "Warning",
"Microsoft.AspNetCore.Server.Kestrel": "Error" "Microsoft.AspNetCore.Server.Kestrel": "None"
} }
} }
} }